Skip to content

9 modules · 40 tutorials

C++ Programming tutorials

Go from C++ syntax to object-oriented design, templates, the STL and modern C++ with smart pointers and lambdas.

Module 01

Getting Started with C++

What C++ is and how it relates to C, setting up a compiler, and the anatomy of a C++ program: headers, namespaces, streams and main.

  1. Introduction to C++ 12m
  2. C++ Environment Setup 13m
  3. Basic Syntax and Program Structure 14m

Module 02

Variables, Operators and Control Flow

C++ types and initialisation (including auto and brace initialisation), operators, decisions with if and switch, and loops including the range-based for.

  1. Variables and Data Types 15m
  2. Operators 14m
  3. Control Flow: if, else and switch 13m
  4. Loops 14m

Module 03

Functions and References

Defining and calling functions, overloading, inline functions, default arguments, and references — C++'s safer alternative to pointers for passing arguments.

  1. Functions 15m
  2. Function Overloading 12m
  3. Inline Functions 10m
  4. Default Arguments 10m
  5. References 14m

Module 04

Pointers, Arrays, Strings and Structures

Raw pointers and dynamic memory with new/delete, built-in arrays versus std::array and std::vector, std::string, and structs in C++.

  1. Pointers and Dynamic Memory 16m
  2. Arrays, std::array and std::vector 15m
  3. Strings (std::string) 15m
  4. Structures 13m

Module 05

Classes and Objects

Defining classes, constructors and destructors, RAII, encapsulation with access specifiers and invariants, and abstraction through clean interfaces.

  1. Classes and Objects 15m
  2. Constructors 16m
  3. Destructors and RAII 15m
  4. Encapsulation 12m
  5. Abstraction 13m

Module 06

Inheritance and Polymorphism

Deriving classes, compile-time and run-time polymorphism, overriding with override and final, how virtual functions work (vtables), and operator overloading.

  1. Inheritance 15m
  2. Polymorphism 14m
  3. Function Overriding 12m
  4. Virtual Functions and the vtable 14m
  5. Operator Overloading 15m

Module 07

Templates, Exceptions, Namespaces and Files

Generic programming with function and class templates, error handling with exceptions, organising code with namespaces, and reading and writing files with fstream.

  1. Templates 16m
  2. Exception Handling 16m
  3. Namespaces 11m
  4. File Handling 15m

Module 08

The Standard Template Library

Containers (vector, list, stack, queue, map, set), iterators and algorithms — the reusable, efficient building blocks of modern C++ programs.

  1. STL Overview 12m
  2. Vectors in Depth 14m
  3. Lists (std::list and std::forward_list) 12m
  4. Stacks, Queues and Priority Queues 13m
  5. Maps (std::map and std::unordered_map) 14m
  6. Sets (std::set and std::unordered_set) 12m
  7. Iterators 13m

Module 09

Modern C++

Lambda expressions, smart pointers for automatic memory management, and the core features of C++11–C++20 that define idiomatic modern C++.

  1. Lambda Expressions 15m
  2. Smart Pointers 16m
  3. Modern C++ Fundamentals 16m