iostream
Explore how to use C++ stream classes std::istream and std::ostream for efficient input and output. Understand predefined stream objects like std::cin and std::cout, how to use stream operators for data extraction and insertion, and common stream manipulators such as std::endl, std::flush, and std::ws to control formatting and buffer flushing.
We'll cover the following...
The stream classes std::istream and std::ostream are often used for the reading and writing of data. Use of std::istream classes requires the <istream> header; use of std::ostream classes requires the <ostream> header. We can have both with the header <iostream>. std::istream is a typedef for the class basic_istream and the character type char whereas std::ostream is a typedef for the class basic_ostream:
C++ has four predefined stream objects for convenience when dealing with the ...