DM560, Introduction to Programming in C++

General information

Schedule

MitSDU

Contents

Introductory Classes

Week Date Topic and Slides Recommended Reading Additional Reading
36 Sep 2 Course Organization. Building a program. (short) Ch. 2 p 44-57 [BS] Ch. 1,2 [BS]
37 Sep 10 Types (short) Sec. 3.1-3.9, 4.3-4.7 [BS] Ch. 3,4 [BS]
38 Sep 17 Computations, Control Structures, Functions, Vectors (short) Ch. 4 [BS]
39 Sep 24 Error Handling (short) Sec. 5.2-5.7,5.10 Ch. 5, App B.2.1 [BS]
39 Sep 24 Program Development. The calculator example (short) Ch 6 [BS]
40 Oct 1 Program Development. The calculator example. Makefile Sec. 7.1-7.7 [BS] Sec. 7.8 [BS]
41 Oct 8 Declarations and Definitions, Functions, Scopes, Namespaces (short) Ch. 8 [BS]
43 Oct 22 Classes (short) Ch. 9 [BS]
43 Oct 24 I/O Streams (short) Chp. 10 [BS]
44 Oct 29 I/O Formatting (short) Chp. 11 [BS]
45 Nov 5 GUI Classes, Inheritance and Polymorphism (short) Ch. 14 [BS] Ch. 12,13,14 [BS]; slides
46 Nov 12 Memory Management: Pointers and Allocations (short) Ch. 17 [BS]
47 Nov 19 Vectors: copy, move and arrays (short) Ch. 18 [BS]
48 Nov 26 Vectors: templates and exceptions Ch. 19 [BS]
49 Dec 3 Generic Programming: Templates, STL Containers, Iterators and Algorithms. Sequence Containers Ch. 20 [BS]
49 Dec 5 Generic Programming: Templates, STL Containers, Iterators and Algorithms. Associative Containers Ch. 21 [BS]
50 Dec 10 Numerics (Precision, Matrix, Random Numbers, Complex Numbers) Ch. 24 [BS]
51 Dec 17

Exercises

Week Date Notes and Assignments Solutions
36 Sheet 1
37 Sheet 2 solutions
37 Sheet 3
38 Sheet 4 solutions
41 Sheet 5
43 Sheet 6 solutions
44 Sheet 7 solutions
45 Sheet 8 solutions
46 Sheet 9 solutions
47 Sheet 10 solutions
49 Sheet 11 solutions
49 Sheet 12
50 Sheet 13 solutions

Notes

This is a list of notes referred to in the exercise sheets.

Literature

Assessment

Resources

Development Environments

Libraries and Documentation

Extensions (not in this course):