Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

input a string in c++

string fullName;
cout << "Type your full name: ";
getline (cin, fullName);
cout << "Your name is: " << fullName;
 
PREVIOUS NEXT
Tagged: #input #string
ADD COMMENT
Topic
Name
4+7 =