If 0, all error bits are cleared; otherwise bits are set according to the following masks (ios enumerators) that can be combined using the bitwise OR ( | ) operator. The nState parameter must have one of the following values:
ios::goodbit No error condition (no bits set).
ios::eofbit End of file reached.
ios::failbit A possibly recoverable formatting or conversion error.
ios::badbit A severe I/O error.
Remarks
Sets or clears the error-state flags. The rdstate function can be used to read the current error state.
istream::ignore
istream& ignore( int nCount = 1, int delim = EOF );
Parameters
nCount
The maximum number of characters to extract.
delim
The delimiter character (defaults to EOF).
Remarks
Extracts and discards up to nCount characters. Extraction stops if the delimiter delim is extracted or the end of file is reached. If delim = EOF (the default), then only the end of file condition causes termination. The delimiter character is extracted.