English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

cout << "Enter a number: ";
cin >> a;

2007-09-29 11:44:31 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

cout means console output so when you use
cout<<"Enter a number"; it displays the message "Enter a number on screen.

cin means console input and when you use
cin>>a;
it reads the keyboard(what key you press) and stores it into the variable a;

2007-09-29 11:55:08 · answer #1 · answered by Shariq (http://coinsindia.info) 5 · 0 0

cout << "Enter a number: "; means that standard output, print this string "Enter a number:" (without ")
cin>>a means that enter a variable like integer or float or a character, it depends on what you defined it.

2007-09-29 11:49:18 · answer #2 · answered by Anonymous · 0 0

ask user to enter a number in console ie black monitor screeen
when user inputs or enter no. thru keyboard store that value to memory a representing

2007-09-29 18:08:33 · answer #3 · answered by i_am_the_next_best_one 5 · 0 0

It prints out on the computer:

Enter a number.

Then it reads the nunmber that the user types and put the number in the variable a.

2007-09-29 11:48:40 · answer #4 · answered by Computer Guy 7 · 1 0

this means you are printing on the console : Enter a number
and taking input from the console.

note that, from console i mean your monitor,
although to be more precise, it is the standard input/output streams.

2007-09-29 12:17:33 · answer #5 · answered by kristo_abhi 2 · 0 0

fedest.com, questions and answers