+ 2
How cin and cout are different?
7 ответов
+ 2
cin is used for accepting input from your keyboard. cout is used for printing the output
+ 2
Here's a simple explanation: cin for input purpose and cout for output ! For example you have declared a variable x and want to give it a value after you have executed your program. For that purpose you will write cin››x; Now If you want to display value of x you will write cout‹‹x;
0
cin is input n cout stands for output
0
cin is for user input and cout is for screen display
0
thanks everyone
0
cin is uses extration operator (>>) to get values from the user or file. where as cout uses insertion operator(<<) to put values in file or to user via display unit.
0
cin is used for receiving input from the user.
i.e, cin>>****;
cout is used for displaying the output to the user.
i.e, cout<<*****;