0

What is the necessity of cin

5th Dec 2016, 4:17 PM
Ravi Kumar
Ravi Kumar - avatar
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!
5th Dec 2016, 4:25 PM
Stefan du Toit
Stefan du Toit - avatar
0
thanks
5th Dec 2016, 4:33 PM
Ravi Kumar
Ravi Kumar - avatar