Course pages 2015–16
Programming in C and C++
Lecture slides and exercise sheet (as printed)
- Lecture 1
- Lecture 2
- Lecture 3
- Lecture 4
- Lecture 5
- Lecture 6
- Lecture 7
- Lecture 8
- Lecture 9
- Lecture 10
- Exercise sheet for supervisions
Code snippets
C and C++ code used in the slides
Additional C snippets:
Lecture 2:
layout.c
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 [Javascript required] 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++)