22
Simple I/O -
cin
4
cin
•
is an istream object
•
streams input from standard input
•
uses the >> (input operator)
General Form:
cin
>>
identifier
>>
identifier
;
Note:
Data entered from the keyboard must be
compatible with the data type of the variable.