The global getline() function works with C++ std::string objects.
The istream::getline() methods work with “classic” C strings (pointers to char
).
The global getline() function works with C++ std::string objects.
The istream::getline() methods work with “classic” C strings (pointers to char
).