+ 1
What is the point of "cin" i still dont get it
5 ответов
+ 5
Not just number but also characters. Basically it's a way to get user input in console applications.
+ 2
it will ask you if you can choose the number.
like this
cin << a
there will come a pop-up and you have to fill in a number like 7
then a will be 7
I hope it is right and I help you also you can test it in the code playground
+ 1
ok. thanks. what is the practical use for it?
+ 1
cin is the request for input. It basically asks you to input a value into a variable, exactly the opposite of cout.
Let's say you have a std::string MyName;
Then cin << MyName;
will ask you to input a string and assign it to MyName. Hope i helped!
0
thanks guys