0
What is the necessity of cin
2 ответов
0
cout is used when you want to OUTput something. Similarly, cin is used to INput.
string response;
// Output displayed to the user
cout >> "Please enter your name" << endl;
// The input from the user is stored into response
cin >> response;
Hope this helps!
0
thanks