Week8

This week we first 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. However example programs of the book is also good, so please have a look at them. Reference parameters are not included in the 1st Midterm Exam.

Then we started classes (using, understanding, design, implement, update). These are scattered in the Chapters 5, 6 and 7 of the textbook. Some parts of those chapters are directly related to classes. Section numbers are given in the classes2.ppt file. Some examples are not in the book but all examples covered in lectures are given below.

Powerpoint files

params

classes21

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

passbyvalue_cpp

passbyreference_cpp

roots_cpp

dice_h

dice_cpp

roll_cpp

testdice_cpp

randgen_h

randgen_cpp