+ 2
cin
I'm not exactly sure how this works. It says something about the input device. I'm new to programming. Could anyone help clear this up?
2 odpowiedzi
+ 8
e.g.
int x;
cout << "Please input an integer to x" << endl;
cin >> x;
cout << "Your input is " << x;
// while cout is used to print information to the screen, cin is used to read information from the user and store them into variables.
+ 6
cin is an object for standard input from the keyboard