Chapter 5: Writing Functions in C++

Home

Chapter 2 exercises

Chapter 3 exercises

C++ Resources

In addition to the code in the text, there are 20 end of chapter exercises.

I am now working through these exercises and these are the ones I have done so far:


Updated 2nd April 2009

1. function to show square

2. function shows the square root of the largest perfect square below given number

Updated 8th April 2009

3. notes about this exercise

    a recursive solution

Updated 13th April 2009

    a iterative solution with range checking for unsigned int

Updated 20th April 2009

4. plot a pixel function


Updated 7th July 2009

5. scale() and color()