0
What is 'cin' in c++ ?
Please explain cin
4 Réponses
+ 6
It is used for taking the input from user..
https://www.sololearn.com/discuss/1325606/?ref=app
+ 2
console input. u can take input with this method like
cin>>x;
where x is variable
0
Standard input (cin) In most program environments, the standard input by default is the keyboard, and the C++stream object defined to access it iscin . For formatted input operations,cin is used together with the extraction operator, which is written as >> (i.e., two "greater than" signs)
http://www.cplusplus.com/doc/tutorial/basic_io/
0
Cin is used to take an input from the user, it is most commonly used with cout as this could be a code to take a number from the person using the program
Int a;
cout << “please enter a number”;
Cin >> a;
This is a program that will wait for a user to input a number and stores that number in variable a.