+ 1
how to accept user input???
what i have to write when ''Seems like your program requires input'' shows ?? on that function #include <iostream> using namespace std; int main() { int a; cout << a+5; cin >> a; cout << a; return 0; } give me some examples, please... i cant understand :/
3 Answers
+ 2
cout is used to send output to console
and
cin use for input that take user input
in your program cin has used for get value from user and insert it to variable, it is compulsory to store data in a variable.
+ 1
Hi
check this link :
http://www.cplusplus.com/doc/tutorial/basic_io/
+ 1
thx :)