Stream flags
n
cin.eof()
n
Any input left?
n
cin.fail()
n
Error on input
n
cin.bad()
n
major error
n
cin.good()
n
bad, fail, eof all off
n
cout.rdstate()
n
Get flags as an integer
n
cin.clear()
n
reset flags
n
operator!
n
test badbit, failbit
n