An Introduction to the Imperative Part of C++
amended by David Clark,
September 1997
amended by Bob White, September 1998
Go straight to contents of:
Lecture 1, Lecture 2, Lecture 3, Lecture 4,
Lecture 5, Lecture 6, Lecture 7, Lecture 8
These lecture notes are designed for an 8 day intensive introductory course
on programming, using the imperative core of C++, and given to MSc (Computing
Science) students at Imperial College at the very beginning of their course. The
students attend a 1-hour lecture at the beginning of each of the eight days,
followed by 7 hours of lab/tutorial work, using the GNU g++ compiler on PCs
running Linux. 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.
Recommended Books
The books recommended to accompany
this course are:
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 and Sophia Drossopoulou, Imperial College London, 30th
September 2007
Course Structure
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8
Contents of Lecture: 1,
2, 3, 4, 5, 6, 7, 8