... ios class uses state flags to define the various states a file can assume. Each state
flag corresponds to a single bit in a status-word, which is represented by the iostate
type in the ios class. ... ios::badbit ). . .
The clear() method is available for clearing the status-word. If you call clear()
without any arguments, all the state flags are cleared. An argument of the iosta...