How were you suposed to use the "cin" operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How were you suposed to use the "cin" operator?

11th Dec 2019, 8:31 AM
It's *Aandrew* Banu
It's *Aandrew* Banu - avatar
2 Answers
+ 2
cin in c++, is quite just the opposite of cout. Instead of giving away output, you're getting input. Using cin, it prompts the user to put in input, and waits till the user hits Enter. Let's say for example: int num; cin >> num; Now num contains whatever the user inserted. CIN equals Console Input, and COUT equals Console Output
11th Dec 2019, 8:52 AM
coddy
coddy - avatar
+ 3
Please first review your question. What is Cow here.
11th Dec 2019, 8:40 AM
A͢J
A͢J - avatar