Object-oriented scientific programming with C++#
This repository contains the slides and supporting materials for the course Object-oriented scientific programming with C++, taught at TU Delft under two course codes: TW3720TW (bachelor’s programme) and WI4771TU (master’s programme).
The lecture materials are available in three formats:
notebooks: JupyterLab notebooks for studying the material before or after each lecture.interactive slides: slides used during lectures, with the option to modify and run code interactively.static slides: static versions of the lecture slides.
We strongly recommend using the notebooks and interactive slides in the provided Binder environment. Running them locally requires a properly installed and configured C++ kernel for Jupyter. We do not provide support for setting up or running these materials in a local JupyterLab installation.
For each week, we also provide:
readers: supplementary reading material for self-study.primers: Markdown files whose contents you should use as the first prompt in a new conversation with your AI agent. These instructions guide the agent to support the week’s learning goals.prompts: Markdown files containing the exact prompts used to generate the code examples in the reader.
Lecture 1 - 11 November 2026#
This lecture introduces some of the basic C++ concepts: variables and constants, loops, namespaces and scopes, structuring programs into functions, passing arguments by value and reference, error handling with exceptions, fixed-size arrays and pointers.
Lecture 2 - 18 November 2026#
This lecture introduces structures and classes, constructors and destructors, dynamic memory allocation, and two containers from the C++ standard library - std::array and std::vector.
Lecture 3 - 25 November 2026#
This lecture introduces class inheritance, runtime polymorphism, and template meta-programming.
© Copyright 2026 by Matthias Möller.