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.
basic_istream::ignore
basic_istream& ignore(streamsize n = 1,
int_type delim = T::eof());
The unformatted input function extracts up to n elements and discards them. If n equals numeric_limits<int>::max(), however, it is taken as arbitrarily large. Extraction stops early on end-of-file or on an element x such that T::to_int_type(x) compares equal to delim (which is also extracted). The function returns *this.