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 |