+ 1

What is the point of "cin" i still dont get it

12th Feb 2017, 7:14 PM
Ethan Combs
5 ответов
+ 5
Not just number but also characters. Basically it's a way to get user input in console applications.
12th Feb 2017, 7:46 PM
Alireza M
Alireza M - avatar
+ 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
12th Feb 2017, 7:29 PM
Idris K.
Idris K. - avatar
+ 1
ok. thanks. what is the practical use for it?
12th Feb 2017, 7:44 PM
Ethan Combs
+ 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!
12th Feb 2017, 7:46 PM
Tsubaki13
Tsubaki13 - avatar
0
thanks guys
12th Feb 2017, 7:47 PM
Ethan Combs