istream& unget();
true
). Then (if good), it calls sungetc on its associated stream buffer object (if any). Finally, it destroys the sentry object before returning.*this
)。flag | error |
---|---|
eofbit | - |
failbit | 构造sentry失败(例如,当流状态在调用之前不是good时)。 |
badbit | Either the internal call to sungetc failed, or another error occurred on the stream (such as when the function catches an exception thrown by an internal operation, or when no stream buffer is associated with the stream). When set, the integrity of the stream may have been affected. |
|
|
Please, enter a number or a word: 7791 You entered a number: 7791 |