Answers for "string inpurt in c++"

C++
0

string inpurt in c++

string fullName;
cout << "Type your full name: "; 

  getline (cin, fullName);
cout << "Your name is: " << 
  fullName;

// Type your full name: John Doe
// Your name is: John Doe
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language