CIS 250 - C++ I/O and formatting

Objectives

C++ I/O overview

The extraction operator

The insertion operator

Input functions

Formatted I/O using iostream and iomanip

There are a number of ways of setting the stream manipulations shown below. For simplicity, we will stick with one style for this week.

Formatted I/O using printf

Using stringstream

Input validation