1/13/00
COM1100 Winter2000 Yuhong Yin Northeastern University
17
Raw input
nThe built-in input functions/statements in most programming languages support this mode of input.
ncin >>
nExample
nint x;
n cout << “Please enter a number : “ ;
n cin >> x;
n // what happened if I enter a letter instead of a number
n cout << “The number you entered is : “ << x << endl;