Lab: I/O, Control Flow, & Strings

Steven J Zeil


Table of Contents

1. Checking the Status of Input
2. Free-Form Inputs
2.1. Numbers
2.2. Strings
3. Line-By-Line Inputs
4. Problems for You

In this lab we are going to explore some of the interactions among our three most-recent major topics - I/O, control flow, and strings. In particular, we are going to explore one of the most common I/O tasks, reading an entire file of data from beginning to end.

Get into Code::Blocks and create a new project for this lab.