Answers for "how to input a string in c++ with spaces"

C++
4

c++ reading string

#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line
Posted by: Guest on January-26-2020
7

how to make string get spaces c++

string s;
getline(cin,s);
Posted by: Guest on June-02-2020

Code answers related to "how to input a string in c++ with spaces"

Browse Popular Code Answers by Language