+ 2

cin

I'm wondering why I can't enter a number in cin from the output screen as a user. Any help would be greatly appreciated.

23rd Jan 2017, 7:08 PM
Matthew Luvera
3 odpowiedzi
+ 3
Because code playground doesn't work that way. It takes user input before compiling the program and stores them separately. That's why it is impossible to take user input from output screen.
24th Jan 2017, 3:18 AM
Rishabh Agrawal
Rishabh Agrawal - avatar
+ 1
depends on your code but it should be like that int input; input << std::cin;
23rd Jan 2017, 7:31 PM
malicious
0
type of code for cin is to format it like this: cin >> ( what ever information).
1st Feb 2017, 9:20 PM
Tails Ex Machina
Tails Ex Machina - avatar