C++ getting strings from uyser input with spaces code example Example: how to make string get spaces c++ string s; getline(cin,s);