Answers for "how to input string with spaces in cpp"

C++
3

string input with space c++ stl

char input[100];
cin.getline(input,sizeof(input));
Posted by: Guest on July-11-2021
-1

read string with spaces in c++

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

Browse Popular Code Answers by Language