Simple C++ examples

David J.C. MacKay
http://www.inference.phy.cam.ac.uk/teaching/comput/C++/