C++ Tutorial

C++ was created by Bjarne Stroustrup at Bell Labs starting in 1979 as an extension of C. It gives you direct control of memory and hardware while also supporting high-level abstractions such as classes, templates, and the standard library. C++ powers operating systems, game engines, databases, browsers, trading systems, and embedded devices — and it is taught here as a first programming language, with no C knowledge assumed.

Scope: Study the topics in order, compile every example yourself, and treat this track as a fast-forward — not as a reference manual. The modern C++ baseline is C++17, with C++20/23 features introduced where they matter.

C++ Study Progress

0% Complete
# C++ Topic Description
PHASE 1: LANGUAGE FOUNDATIONS
01Why C++ & the RoadmapWhere C++ fits, an honest comparison, and the full learning path.
02Toolchain & First ProgramInstall a compiler, then write, build, and run your first program.
03C++ Syntax & StructureStatements, expressions, comments, namespaces, and the main function.
04Data Types & VariablesFundamental types, size and range, const, auto, and type conversion.
05Operators & ExpressionsArithmetic, comparison, logical, bitwise operators, and precedence.
06Control FlowConditionals, switch, classic and range-based loops.
PHASE 2: FUNCTIONS & DATA
07Functions & ScopeDeclarations, parameters, overloading, default arguments, and scope.
08References & PointersAliases, raw pointers, nullptr, dereferencing, and pass-by semantics.
09Composite TypesArrays, structs, enums, pair, tuple, and a first look at std::vector.
10Strings & Textstd::string, string_view, common operations, and conversions.
PHASE 3: OBJECT-ORIENTED PROGRAMMING
11Classes & ObjectsEncapsulation, constructors, destructors, and operator overloading.
12Inheritance & PolymorphismBase and derived classes, virtual functions, and object slicing.
PHASE 4: MEMORY, TEMPLATES & STL
13Memory & RAIIStack vs heap, new/delete, smart pointers, and RAII ownership.
14Templates & GenericsFunction and class templates, constraints, and specialization.
15STL Containers & Iteratorsvector, map, set, iterators, and container adaptors.
16Algorithms & LambdasThe <algorithm> library, lambdas, capture modes, and ranges.
PHASE 5: MODERN C++
17Modern C++ (C++11 to C++23)Move semantics, constexpr, structured bindings, ranges, and std::format.
18Concurrency & ParallelismThreads, mutexes, atomics, and task-based concurrency with std::async.
19Enterprise DevelopmentRAII, error strategy, logging, patterns, CMake builds, testing and CI.
20Lab ExamplesLarger, commented practice demos grouped by category — build and modify them.
Credits: Lesson content drafted with DeepSeek via Fireworks AI. References: the free resources listed below.

Free References

These are the free, high-quality resources this track links to inline. They cover the whole journey — read the language reference, follow a structured course, check your code against the community guidelines, and try everything right in a browser with no installation.

Online compilers & playgrounds (no install)

Documentation & tutorials

Guidance & the standard

Open-source samples & projects