+ 2

What is difference between using cin and using cout?If there is difference then when to use each of them?

7th Jan 2017, 8:19 AM
Semal Sherathia
Semal Sherathia - avatar
4 Antworten
+ 3
cin takes the user's input in a console. cout outputs values/strings onto the console
7th Jan 2017, 8:21 AM
Wen Qin
Wen Qin - avatar
+ 1
If you use cin then you make the user write something in to a variable. If you use cout you can make do something up on the screen. I hope it helped (you can also just take the beginner course.)
7th Jan 2017, 8:22 AM
Simon
Simon - avatar
0
cin is used to give input function to programme: cout is used to get output from programme: they are majorly different from each other bro
7th Jan 2017, 12:30 PM
navdeep dhakar
navdeep dhakar - avatar
0
cout:output to screen cin: user input from hardware device like keyboard
5th Jan 2018, 6:08 PM
Rishi