how to take input of words with space in c++ code example Example: how to make string get spaces c++ string s; getline(cin,s);