Answers for "how to get string with space in cpp"

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
0

read string with spaces in c++

#include <string>
string s;
getline(cin, s);
Posted by: Guest on June-08-2021

Code answers related to "how to get string with space in cpp"

Browse Popular Code Answers by Language