1/13/00
COM1100 Winter2000 Yuhong Yin
Northeastern University
21
Summary of input -- 1
n
Raw Read
provides no error checking. Two
statements are needed - an output statement that
prints the prompt to the user and a basic input
statement.
n
int x;
n
cout << “Please enter a number : ”;
n
cin >> x;
n
n