true). Then (if good), it reads one character from its associated stream buffer object by calling its member function sgetc, and finally destroys the sentry object before returning.
traits_type::eof()), and leaves the proper internal state flags set:
|eofbit||No character could be peeked because the input sequence has no characters available (end-of-file reached).|
|failbit||The construction of sentry failed (such as when the stream state was not good before the call).|
|badbit||Error on stream (such as when this function catches an exception thrown by an internal operation).|
When set, the integrity of the stream may have been affected.
Please, enter a number or a word: foobar You entered the word: foobar