class iostream : public istream, public ostream

The iostream class provides the basic capability for sequential and random-access I/O. It inherits functionality from both the istream and ostream classes.

The iostream class works in conjunction with classes derived from streambuf (for example, filebuf). In fact, most of the iostream “personality” comes from its attached streambuf class. You can use iostream objects for sequential disk I/O if you first construct an appropriate filebuf object. More often, you will use objects of classes fstream and strstream.

Derivation

For derivation suggestions, see the istream and ostream classes.

#include <iostream.h>

See Also

istream, ostream, fstream, strstream, stdiostream