+ 1
string str; getline(cin, str); This way, you ensure that you take the entire input as a string, other than until a blank space or a new line character is found, which is what std::cin would do.
1st Sep 2016, 1:49 AM
Cohen Creber
Cohen Creber - avatar