Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

read string with spaces in c++

#include <string>
string s;
getline(cin, s);
 
PREVIOUS NEXT
Tagged: #read #string #spaces
ADD COMMENT
Topic
Name
4+2 =