🚀 C++ for kids
C++ is C with the sharp edges filed off, and the language most games are built in. Streams, string, vector, class, constructors and destructors, inheritance and virtual functions.
- 8 units
- 33 lessons
- 177 exercises
- Units 1–2 free
- Ages 8–15
How this track is kept honest
The same interpreter runs C++, checked against g++ on thousands of programs from an outside compiler test suite. The details easiest to fake are pinned hardest: destructor order, dynamic dispatch, and what sizeof really reports.
Best after the C track — it assumes you have already met pointers.
How it starts
In C you had to match %d to the right value by hand. C++ gives you cout and the << arrows instead — it works out the type for you. endl ends the line.
The full C++ syllabus
8 units and 33 lessons, in the order they are played. Each unit has a page of its own with every explanation in it, the code samples and what they print, and a few questions to try.
Unit 1: Hello, C++
The friendlier cousin
- cout
- Real Booleans
- Strings At Last
- Greeting Machine
Unit 2: Choices, Loops & Vectors
Lists that can grow
- If / Else
- Loops
- Vectors
- Game Builder
Unit 3: Functions & References
Two names for one thing
- Making Functions
- Copies and Originals
- Handy Extras
- Function Factory
Unit 4: Text, Grids & Input
Build something real
- String Tools
- Walking Through Text
- Vector Tools
- Grids & Asking the User
- Quiz Machine
Unit 5: Structs & Enums
Grouping things that belong together
- Grouping Values
- Structs That Do Things
- Named Numbers
- Struct Master
Unit 6: Classes & Objects
Blueprints that look after themselves
- From Struct to Class
- Constructors
- Keeping Data Safe
- Class Master
Unit 7: Inheritance
Building a class from another
- Passing Things Down
- Changing What You Inherited
- Inheritance Master
Unit 8: More Tools
Overloading, memory and mistakes
- One Name, Several Functions
- Asking for Memory
- When Things Go Wrong
- Handy Library Tools
- Toolkit Master
Other things to learn
- 🐍 Python for kids
The friendliest first language. Start here!
- ✨ JavaScript for kids
The language of websites. Try it after Python.
- ⚙️ C programming for kids
How computers really work. Read, predict and reason about real C.
- 🔌 Digital logic for kids
Start with one tiny switch. Finish with a working computer.
- 🌱 Git and version control for kids
Save your work forever, and share it.
- 🐧 Linux and the command line for kids
Drive a whole computer by typing.
- 🔢 Problem-solving maths for kids
Powers, shapes, chances and proof — the way problem solvers see them.
- 🤖 AI and machine learning for kids
Teach a computer to learn — with nothing but adding and multiplying.
- 🤖 Robotics coding for kids
Write code that drives a machine around a room.
- 🏁 Competitive programming for kids
Win the race. The algorithms that beat the clock.