Unit III: Functions
- Class III.1 was a lab
- Notes for class III.2: Functions
- Class III.3 was a lab
- Notes for class III.4: More on functions
- Here's predator.cpp, the
fox & rabbit example from class III.2.
- Here's fox.cpp, the
simpler fox & rabbit example from class III.3.
- Here's swap.cpp, the
reference parameter example from class III.4.
- Here's numbers.dat, the
file of numbers for the second part of the third lab.
You should read through Chapters 4 and 5 of the textbook. The material
is a little different from what we looked at in class, but all
of it is relevant. Don't skip stuff just because I didn't mention it.