Chapter 18 The Fundamentals of iostream Programming

The C++ Tutorial introduced the cin and cout objects together with the insetion (<<) and extraction (>>) operators. Many of the C++ Tutorial programming examples use these iostream objects and operators to read input from the keyboard and to display results on the screen. This chapter presents the theory behind input/output (I/O) streams and gives step-by-step instructions for using these useful tools.