Given the following code: getline(std::cin,s); You don't have to prefix getline with std:: because of Koenig lookup.
Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis. Addison-Wesley, 1999., p. 493.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment