These lecture notes are designed for an introductory course on programming, using the imperative core of C++, and given to MSc (Computing Science) students at Imperial College London at the very beginning of their course. The students attend an intensive series of lectures and laboratory sessions over nine 9 days, carrying out lab work using the GNU g++ compiler on PCs running a flavour of UNIX. Since the course is intended for graduates from disciplines other than Computer Science, very little previous programming experience is assumed.
Program Listings in the Notes
All the example programs referred to in the lecture notes and all the example answers to the exercises have been written in ANSI standard C++, and have been tested using the GNU g++ compiler.
The books recommended to accompany this course are:
· Walter Savitch, Problem Solving with C++, 7th Edition, Addison Wesley Publishing Company, Inc., 2009. (A comprehensive introductory text on programming, C++ and object-oriented programming; the 6th edition is also recommended where this edition is not yet widely available.)
· Bjarne Stroustrup, The C++ Programming Language (Special Edition), Addison Wesley Publishing Company Inc., 3rd Edition, 2000. (The "classic" reference book on C++ written by the inventor of the language. A good investment for those intending to do a considerable amount of C++ programming.)
Use of These Notes
Please feel free to use, edit and re-distribute these notes as you wish. It would be appreciated, however, if you could ensure that all references to the original author (i.e. Rob Miller) within both the text and the .html file names are preserved.
William Knottenbelt, Imperial College London, 30th September 2011