ios good() function in C++ with Examples
The good() method of ios class in C++ is used to check if the stream is good enough to work. It means that this function will check if this stream has raised any error or not.
bool good() const;
Parameters: This method does not accept any parameter.
Return Value: This method returns true if the stream is good, else false.
is stream good: 1
is stream good: 0