Electrical and Computer Engineering
2 of 37
UAH
CPE 112
•InputStatement
–  cin >> Variable >> Variable …;
• cin >> length >> width; is equal to
• cin >> length;
• cin >> width;
•Unlike the items specified in an output statement, which can be constants, variables, or complicated expressions, the items specified in an input statement can only be variable names.
Input Statement Syntax
and More