Answers for "c++ input text"

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
1

how to input in cpp

int x;
cin >> x;
string s;
cin >> s;
Posted by: Guest on October-03-2021

Browse Popular Code Answers by Language