how to get string with spaces in c++14 code example Example: how to make string get spaces c++ string s; getline(cin,s);