Home Segments Index Top Previous Next

401: Mainline

From the implementation perspective, stream names are variables assigned to class objects. For example, cin is an object belonging to the istream class, and cout is an object belonging to the ostream class.

Similarly, input-file streams are objects that belong to the ifstream class, and output-file streams are objects that belong to the ofstream class.