← Back to topics
Topic

Standard Input in C++

n
nolopromittere
What exactly IS the "standard Input" for C++?

Is it cin? is it scanf? readline?
A
Al3kSaNdaR
It's reading from your keyboard not from a file. Yes it's scanf, cin, gets, getchar, etc.
A
Al3kSaNdaR
This is wrong -> cout << "enter number between 1 and 10000" << endl;

You must read and write exactly what is told in task statement, no less, no more.
n
nolopromittere
Thank you!

I was adding an output before my input to prompt a potential user - now it's fixed!