Week6

This week we continued with Chapter 4 (4.5 – 4.6) of the textbook (Tapestry). We covered functions that return a value, math library and string class. Some of the topics and example programs may not exist in the book (or may not exist in Chapter 4) (e.g. some string functions are not covered in Chapter 4). Follow the referrals in the funcs2.ppt file. All codes covered in class are given below. We could not cover stringremove.cpp in the class, so please take a look at that one.

Powerpoint files

funcs2.ppt

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

pizza2_cpp

isleap_cpp

isleap2_cpp

strdemo_cpp

strfind_cpp