Week 10

This week we 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.

Then we then covered some details about reading input with cin.

Powerpoint files

params

streams

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

passbyvalue_cpp

passbyreference_cpp

roots_cpp

prompt.h   prompt_cpp

sentinel_cpp

countw_cpp

sum10validnums_cpp

sum10validnumsfixed_cpp

mindatainput_cpp

countw2_cpp

longestword_cpp