DM560, Introduction to Programming in C++

Links


Schedule


Introductory classes

# Date Topic and Slides Recommended Reading Additional Reading
1 02.10 Course Organization. Building a program. Ch. 2 p 44-57 [BS] Ch. 1,2 [BS]
2 05.10 Types and Computations Sec. 3.1-3.9, 4.3-4.7 [BS] Ch. 3,4 [BS]
2b 09.10 Computations, Functions, Vectors (slides lec 2) Ch. 4 [BS]
3 23.10 Error Handling Sec. 5.2-5.7,5.10 Ch. 5, App B.2.1 [BS]
4 30.10 Program Development Ch. 6,7 Ch. 6, 7 [BS]
5 31.10 Declarations and Definitions, Functions, Scopes, Namespaces Ch. 8 Ch. 6,7,8 [BS]
6 06.11 Repetition, Classes Ch. 9 Ch. 9 [BS]
7 13.11 I/O Streams Ch. 10 Ch. 10 [BS]
8 14.11 I/O Formatting Ch. 11 Ch. 11 [BS]
9 20.11 GUI Classes, Inheritance and Polymorphism Ch. 14 Ch. 12,13,14 [BS]
10 23.11 Memory Management: Pointers and Allocations; Vectors and Arrays Ch. 17,18 Ch. 17,18 [BS]
11 04.12 Memory Allocations in Vectors; Templates; Smart Pointers Ch. 19 Ch. 19 [BS]
12 11.12 Generic Programming: Templates, STL Containers, Iterators and Algorithms
Sequence Containers; Associative Containers
Ch. 20,21 [BS]
13 19.12 Numerics (Precision, Matrix, Random Numbers, Complex Numbers) Ch. 24 Ch. 24 [BS]

Exercises

# Date Notes and Assignments Solutions
1 05.10 Working Environment; Sheet 1
2 10.10 Sheet 2 Code
3 24.10 Sheet 3
4 30.10 Sheet 4; Makefile
09.11 Midway evaluation + Class Test Test 1 - solutions
5 16.11 Sheet 5
6 21.11 Sheet 6
7 27.11 Sheet 7
8 07.12 Sheet 8
9 14.12 Sheet 9
17.12 Second Class Test Test 2 - solutions
10 21.12 Sheet 10
21.12 Final Assignment

References

[BS] Bjarne Stroustrup, Programming -- Principles and Practice Using C++ (Second Edition). Addison-Wesley 2014, ISBN 978-0-321-99278-9. The book at SDU bookstore.

Resources

External links:

Extensions (not in this course):


Course Evaluation