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
Post a Comment