The course
C++
Learn what makes C++ fast and demanding, set up a compiler, and write real programs with operators, branches, loops, pointers, references and types. Every lesson builds on one small arcade game, Rocket Run.
Ready to learnYour path through the ideas
Inside the course
Install your tools, choose your setup and verify a local run.
02Introduction to C++3 lessons
C++ is a compiled language that combines low-level control with abstractions such as classes, templates and automatic resource management. Meet the language behind game engines and browsers: how it turns source into machine code, the trade it asks you to make, and what it added on top of C.
03Setting Up Your Environment3 lessons
A C++ toolchain compiles source files, links their dependencies and produces an executable that can run on its target system. Install a compiler, choose an editor or IDE, and compile and run Rocket Run's first line of output, reading compiler errors the fast way.
04Basic Operations3 lessons
Basic operations use operators to calculate values, combine conditions and manipulate integer bits. Predict what arithmetic, logical and bitwise operators produce: integer division, short-circuit conditions and power-up flags packed into one number.
05Control Flow and Statements3 lessons
A statement performs an action. Control-flow statements select branches, repeat work or leave a loop. Choose between branches with if, else and switch, know when goto is acceptable, and pick the right loop for counting, waiting and asking at least once.
06Pointers and References4 lessons
A pointer stores an address and can be changed to point elsewhere. A reference provides another name for an existing object; both require attention to the object's lifetime. Use raw pointers and references to work on the original object instead of a copy, then learn where objects live in memory and the exact moment each one is destroyed.
07Data Types4 lessons
A type determines which values and operations an expression supports. C++ checks most type rules before execution, with specific facilities for runtime alternatives. See how static typing protects you, let auto deduce types, carry changing types safely with std::variant and std::any, and ask an object its real type with RTTI.