The details about writing output operators for your own data types are explained in Section 15.11, page 810.
The fact that the output mechanism can be extended to incorporate your own data types is a significant improvement over C’s I/O mechanism, which uses printf(): It is not necessary to specify the type of an object to be printed. Instead, the overloading of different types ensures that