In Chapter 8 we introduced the basic architecture and most commonly used parts of the IO library. In this section we’ll look at three of the more specialized features that the IO library supports: format control, unformatted IO, and random access.
Exercise 17.31: What would happen if we defined b
and e
inside the do
loop of the game-playing program from this section?
Exercise 17.32: What would happen if we defined resp
inside the loop?
Exercise 17.33: Write a version of the word transformation program from § 11.3.6 (p. 440) that allows multiple transformations for a given word and randomly selects which transformation to apply.