2014年2月15日 - Strings library .... std::basic_istream& getline( ... e.g. after int n; std::cin >> n;, getline consumes the endline character left on the ...
en.cppreference.com