Week 9

This week we continued with the design and implementation of classes. We first used the RandGen class. Then we looked at the Date class: both using and modifying it. We also talked about the Robot class as the next homework will be about it.

We also covered reference parameters (pass by reference) from Chapter 6.2.3 of the textbook. Examples covered in class are not from book, but can be found below.

Powerpoint files

classes3

params

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

randgen_h

randgen_cpp

numberguess_cpp

date.h date_cpp

usedate_cpp

datedemo_cpp

fathersday_cpp

date_modified.h date_modified_cpp

demodatemodified_cpp

passbyvalue_cpp

passbyreference_cpp

roots_cpp

Recitation Material

Recitation09_Stu Recitation09_TA