c++ - Seems cin.putback(char) does nothing in theory -


i found function basic_istream::putback() inherited form basic_ios calls basic_streambuf::sputbackc() in turn calls pbackfail(). , funny when found pbackfail() nothing returning eof (and it's not overrided).

so how function putback() work in practice?


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

c - Defining floating point constants, how many digits are useful? -

C# Apple Bonjour - how to monitor service records within Windows -