<<< Input/Output Error Handling | Index | General State Handling Logic >>> |
Condition | Meaning |
---|---|
|
operation succeeded;
!cin.good() is usually abbreviated as !cin (pronounced as "if cin is not good, then...") |
|
operation succeeded;
nothing else is left to input. |
|
nothing wrong with cin;
however, the input formatting has failed, (as when reading "abc" when 123 was expected.) The program should try to recover and continue. |
|
something really bad happened to cin;
cin is no longer usable and should be abandoned. No recovery is possible. |
<<< Input/Output Error Handling | Index | General State Handling Logic >>> |