Answers for "how can a string accept a spaces as input in c++"

C++
3

string input with space c++ stl

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

Code answers related to "how can a string accept a spaces as input in c++"

Browse Popular Code Answers by Language