C++ Basic I/O Symbols

A working knowledge of C++ Basic I/O is an important first stage in learning C++.
Here is a table of C++ basic I/O symbols we saw in the preceding program:

Operator Symbols	Meaning
				
cout A special variable --- used along with the insertion operator << to write out the values of variables and expressions to the standard output device such as screen.
<< Insertion operator --- takes two operands. Its left-hand operand is a stream expression (e.g. just an ostream variable cout). Its right-hand operand is an expression which could be as simple as a literal string. << can be used several times in a single output statement.
cin A special variable --- used along with the extraction operator >> to input values from the standard input device such as keyboard to a variable.
>> Extraction operator --- takes two operands. Its left-hand operand is a stream expression (e.g. just a istream variable cin). Its right-hand operand is a variable into which we store the input data. >> can be used several times in a signle input statement.


Copyright: Department of Computer Science, University of Regina.