Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
On this page you can find some exercises about correct programming, inspired by Herb Sutter's 'Guru Of The Week' pages.
These exercises are suitable for experienced beginners, that want to learn to think in the C++ way. As a side-result they will learn more advanced concepts in a playful way. I try to work on the same difficulty scale as Herb Sutter.

Exercise #0: A correct Divide function

Exercise #1: A foolproof function

Exercise #2: Correct function declarations

Exercise #3: Don't give away your internals

Exercise #4: Reading from a std::vector safely

Exercise #5: The many types of const

Exercise #6: refactoring quadratic solver

Exercise #7: add one

Exercise #8: library trouble

Exercise #9: no for-loops

Exercise #10: Obtaining a read-only (smart?) pointer

Exercise #11: Obtaining a std::vector of read-only (smart?) pointers

Exercise #12: Qt hide and show #1: intro

Exercise #13: Qt hide and show #2: the real problem

Exercise #14: Qt hide and show #3: refactoring
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.