Course pages 2012–13
Programming in C and C++
Lecture slides and exercise sheet (as printed)
- Lecture 1 (also as 8-up)
- Lecture 2 (also as 8-up)
- Lecture 3 (also as 8-up)
- Lecture 4 (also as 8-up)
- Lecture 5 (also as 8-up)
- Lecture 6 (also as 8-up)
- Lecture 7 (also as 8-up)
- Lecture 8 (also as 8-up)
- Exercise sheet for supervisions
Code snippets
C and C++ code used in the slides
Additional C++ snippets:
Lecture 5:
enum.cc
fun.cc
overload.cc
reference.cc
Lecture 6:
stack.h
stack.cc
stack_example.cc
array_stack.h
array_stack.cc
stack_example2.cc
complex.h
complex.cc
complex_example.cc
overload_print.cc
puzzle.cc
Lecture 7:
rectangle.h
shape.h
shape_example.cc
example13.hh
speed_example.cc
speed_example2.cc
X.h
X.cc
X_example.cc
Y.h
Y_example.cc
Lecture 8:
iStack.h
iStack.cc
error.h
stackExcp.h
exception_example.cc
B_example.cc
B.h
sort_example.cc
stac.h
stac.cc
stack_eg.cc
Assessed C and C++ Programming Exercise
C and C++ Programming Exercise instructions
(Note: the address c-tick@cl.cam.ac.uk does not acknowledge submissions.)
Starter pack (gzipped tar file)
Head of Department's Announcement about C and C++ Programming Exercise
Additional (non-examinable) reading
- Nick Maclaren's C++ course (Computing Service)
- Nick's
Programming in Modern C++
detailed materials
(extending Bjarne Stroutstrup's course Programming – Principles and Practice Using C++)