Week 3

This week, we covered functions to divide and conquer our programs into smaller pieces. Functions are in Sections 2.4, 2.5 and 2.6 of the textbook. The functions.ppt covers functions, parameters and variable scope rules. Some slides are not in the book. For example, scope rules are not explained in the book in that way.

Powerpoint files

functions

C++ codes discussed in class (some of them might have been modified in class to show extra features)

parts_cpp

totem_cpp

area_f_cpp

oldmac1_cpp

oldmac2_cpp

macinput2_cpp