next up previous
Next: Syntax Errors Up: Overview of C++ Previous: Console Output

Console Input

The console input statement in the C++ is used to input from the keyboard. The input operator is the >> symbol. The value entered by the user is put into the variable that is in the right side of the >> operator. Example of using the console input operator is :

cin >> area;
which require the operator to enter a value for the variable area.



Yousef Haik
2/23/1998