Using Insertion Operators

The insertion (<<) operator is the most familiar means of sending bytes to an output stream object. This operator is preprogrammed for all the standard C++ data types, including integers, floating-point values, null-terminated strings, addresses, and so forth. This chapter presents examples that illustrate output format control and the technique for creating insertion operators for your own classes.