Share via


ios::bad

int bad() const;

Return Value

Returns a nonzero value to indicate a serious I/O error. This is the same as setting the badbit error state. Do not continue I/O operations on the stream in this situation.

ios OverviewAbstract Stream Base Class

See Also   ios::good, ios::fail, ios::rdstate