Learn C++.
A six-chapter path from compilation and variables through control flow, functions, collections, classes, pointers, and resource-safe design.
C++ curriculum
Build fast programs and understand how software uses memory.
Programs, Types & Console I/O
Learn how C++ source becomes an executable, then write programs that store values, calculate results, and communicate through the console.
Open chapter →CPP02Decisions & Boolean Logic
Make programs choose among paths using comparisons, logical operators, if/else chains, switch statements, and input validation.
Open chapter →CPP03Loops & Repeated Work
Repeat tasks safely with while, do-while, and for loops; trace loop state; build nested patterns; and control iteration deliberately.
Open chapter →CPP04Functions, References & Scope
Decompose programs into reusable functions with clear contracts, parameters, return values, references, overloads, and controlled scope.
Open chapter →CPP05Arrays, Vectors & Strings
Store collections, traverse them safely, use dynamic vectors, process text, and apply standard algorithms.
Open chapter →CPP06Classes, Pointers & Resource Safety
Model objects with classes, enforce invariants through constructors, understand addresses and references, and manage resources with RAII.
Open chapter →