istream& putback( char ch );
The character to put back; must be the character previously extracted.
Puts a character back into the input stream. The putback function may fail and set the error state. If ch does not match the character that was previously extracted, the result is undefined.