C++

Overview

About C++

C++ is a fast, compiled, general-purpose language that gives you direct control over memory and hardware while still supporting high-level abstractions. It powers game engines, operating systems, browsers, databases, embedded devices, and high-frequency trading systems. This course starts with Introduction & Setup, which gets a compiler and editor working and explains how code becomes a program, followed by Language Fundamentals covering types, control flow, functions, and the difference between values, references, and pointers.

Memory & RAII covers what makes C++ unique: stack and heap, object lifetime, and the modern tools — smart pointers and move semantics — that replace error-prone manual memory management. Classes & OOP then covers encapsulation, inheritance, and polymorphism, and Templates & Generic Programming shows how to write code that works across types without giving up performance.

STL: Containers & Algorithms teaches the Standard Library you will use every day, and Modern C++ covers the features from C++11 through C++23 — lambdas, constexpr, optional and variant — that make today's C++ far safer and more expressive than the language many people remember.

Concurrency covers threads, locks, atomics, and the C++ memory model. Build Systems & Debugging covers CMake, dependency management, gdb, and sanitizers, so you can work on real multi-file projects. Finally, Testing & Performance covers unit testing, profiling, and benchmarking, plus the Core Guidelines that keep fast code maintainable.

Content

10 modules
01

Introduction & Setup

What C++ is and where it's used, installing a compiler and editor, and how source code becomes a running program — compiling, linking, and your first build.

Compilers g++ / clang First Program
02

Language Fundamentals

Types and variables, operators, control flow, functions and overloading, arrays, strings, and the difference between values, references, and pointers.

Types Functions Pointers & References
03

Memory & RAII

Stack vs heap, object lifetime, new and delete, and why modern C++ relies on RAII, smart pointers, and move semantics instead of manual memory management.

RAII Smart Pointers Move Semantics
04

Classes & OOP

Classes, constructors and destructors, encapsulation, inheritance, virtual functions and polymorphism, operator overloading, and the rule of zero/three/five.

Classes Polymorphism Rule of Five
05

Templates & Generic Programming

Function and class templates, template specialization, variadic templates, and C++20 concepts for writing reusable code that stays type-safe.

Templates Variadic Concepts
06

STL: Containers & Algorithms

The Standard Library's containers, iterators, and algorithms, plus strings, string views, and ranges — and how to pick the right container for the job.

vector / map Iterators Ranges
07

Modern C++ (11 to 23)

The features that changed how C++ is written: auto, lambdas, constexpr, structured bindings, optional and variant, and a look at modules and newer standards.

Lambdas constexpr std::optional
08

Concurrency

Threads, mutexes and locks, condition variables, atomics and the memory model, futures and async, and an introduction to C++20 coroutines.

std::thread Atomics Coroutines
09

Build Systems & Debugging

Organizing multi-file projects with headers and translation units, building with CMake, managing dependencies, and debugging with gdb and the sanitizers.

CMake gdb Sanitizers
10

Testing & Performance

Unit testing with GoogleTest, profiling and benchmarking, cache-friendly design, and the C++ Core Guidelines for writing code that is both fast and maintainable.

GoogleTest Profiling Core Guidelines

What You Can Do After This Course

By the end of the curriculum you'll have built real C++ projects and covered the full path from your first compiled program to fast, tested, multi-threaded code. Concretely, you'll be able to:

Write correct, idiomatic C++ — use types, functions, classes, and templates the way modern C++ is actually written, not like C with classes.

Manage memory safely — apply RAII, smart pointers, and move semantics so resources are cleaned up automatically and leaks become rare.

Use the Standard Library fluently — choose the right container, lean on algorithms and ranges, and avoid reinventing what the STL already does well.

Write generic and modern code — build templates and concepts, and use lambdas, constexpr, optional, and variant from C++11 through C++23.

Write concurrent programs — use threads, mutexes, atomics, and async tools while understanding the data races and pitfalls they introduce.

Ship and maintain real projects — build with CMake, debug with gdb and sanitizers, test with GoogleTest, and profile before you optimize.