An interactive C++ learning path

Read a short explanation, see a worked example, then write, run, and debug real C/C++ code directly in this page. Exercises are auto-graded against hidden test cases -- no local toolchain required.

C Foundations

available

Variables, operators and precedence, control flow, printf/scanf, and how the primitive types actually behave (including overflow).

7 lessons · 23 exercises

Functions, Arrays & Pointers

available

Pass-by-value vs. pass-by-reference, arrays, pointer arithmetic, malloc/free, and the stack vs. the heap.

7 lessons · 24 exercises

Build Tooling & Debugging Literacy

available

How compilation actually works (preprocess, compile, assemble, link), reading compiler errors, CMake, gdb/lldb breakpoints, and the mental model behind ASan/valgrind.

4 lessons · 12 exercises

Classes & Objects

available

Constructors and destructors, encapsulation, and building small value types from scratch.

5 lessons · 19 exercises

Operator Overloading & Resource Management

available

Copy semantics, the rule of three/five, RAII, and namespaces.

5 lessons · 17 exercises

Inheritance & Polymorphism

coming soon

Base and derived classes, virtual functions, abstract classes, and exceptions.

Templates & Generic Programming

coming soon

Function templates, class templates, and mixing OOP with generic code.

The STL

coming soon

vector, map, iterators, algorithms, lambdas, and function objects.

Modern C++ & Numerical Building Blocks

coming soon

Smart pointers, <random>, <chrono>, and basic statistics / Monte-Carlo-flavored numerical exercises.

Capstone Projects

coming soon

Open-ended builds -- a small matrix library, a toy option-pricing simulator, a text-adventure engine, a mini shell -- graded by rubric instead of unit tests.