To provide as much value as possible, we decided to create a website to provide supplementary material— http://www.elsevierdirect.com/companions/9780124158221 . Hereis a guide to what you can find there.
Many of the articles include listings of C or C++ code. These are all provided on the website so that you can use them without needless retyping. They have all been carefully checked, so they should build and run as expected. These are provided as plain text files (with the extension .txt) that pertain to relevant articles. You can simply copy and paste the code as you want. There are 23 files: