- getline (string) - C++ Users
Extracts characters from is and stores them into str until the delimitation character delim is found (or the newline character, '\n', for (2)) The extraction also stops if the end of file is reached in is or if some other error occurs during the input operation
- std::getline - cppreference. com
When used immediately after whitespace-delimited input, e g after int n; std::cin >> n;, getline consumes the endline character left on the input stream by operator>>, and returns immediately
- std::basic_istream lt;CharT,Traits gt;::getline - cppreference. com
Extracts characters from stream until end of line or the specified delimiter delim The first overload is equivalent to getline(s, count, widen('\n')) Behaves as UnformattedInputFunction
|