Keyboard input
The cin object provides the programming input
counterpart to the cout object.
Simplifying for the purposes of this course, let's say that
the cin object can be used to:
- Read data from the computer keyboard
- Deposit that data into variables that have been created
within the program.
For example, the boldface statement in
Listing 1:
- Reads three values typed by the user at the keyboard,
(separated by space characters), and
- Deposits those values into the variables named first,
second, and third in that order.