basic_istream<charT,traits>& getline(char_type* s, streamsize n);
23 Returns: getline(s,n,widen(’\n’))
basic_istream<charT,traits>&
ignore(int n = 1, int_type delim = traits::eof());
24 Effects: Extracts characters and discards them. Characters are extracted until any of the following occurs:
— if n !=
numeric_limits<int>::max() (18.2.1), n characters are extracted
— endoffile
occurs on the input sequence (in which case the function calls setstate(eofbit),
which may throw ios_base::failure (27.4.4.3));