Iostream contains two basic types: IStream and Ostream.
The standard library defines 4 IO objects: CIN, cout, Cerr (output warning and error message), clog (general information when the output program runs).
Writing data to a stream
such as:std::cout<< "Enter numbers:" <<std::endl;
Where the "<<" operator accepts two operands: the left operand must be an Ostream object, and the operand on the right is the value to be printed. Note: The second operator prints Endl, which is a special value called an operator. The effect of writing it is to end the current line and to brush the contents of the buffer associated with the device to the device.
Reading data from a stream
such as:std::cin>>v1>>v2;
">>" is similar to the "<<" above.
, &NB Sp &NBSP;&NBSP
2017/7/12 recorded in Camphor garden 2 ^_^
C + + Primer Plus Chapter 1 input and output