Answers for "string as input in a loop in c++"

C++
23

input a string in c++

string fullName;
cout << "Type your full name: ";
getline (cin, fullName);
cout << "Your name is: " << fullName;
Posted by: Guest on May-04-2020

Browse Popular Code Answers by Language