+ 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.
3 Answers
+ 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.
+ 1
depends on your code but it should be like that
int input;
input << std::cin;
0
type of code for cin is to format it like this: cin >> ( what ever information).