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

python - Setting ctypes.Structure default values -

Ansible - ERROR! the field 'hosts' is required but was not set -

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -