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.
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.
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.
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++.
Module 05
Classes and Objects
Defining classes, constructors and destructors, RAII, encapsulation with access specifiers and invariants, and abstraction through clean interfaces.
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.
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.
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.
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++.