New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to use ' cin >>' function?
Give some examples.
2 Answers
+ 5
string x;
cin >> x;
It saves entered text to variable x. You can input multiple values too:
cin >> x >> y;
0
As I know cin is OBJECT, not a function.