Start from zero and build a real mental model of how C++ works. Written around the mistakes people actually make, not just the syntax.
Your First C++ Program
What every line of a C++ program actually does, and why the compiler is a separate step you have to think about.
Tokens, Keywords and Identifiers
The smallest pieces the compiler reads, and the naming rules that trip people up on day one.
How Compilation Actually Works
The four stages between your text file and a running program, and which stage each error message comes from.
Multi-File Programs and Headers
Real programs are never one file. How to split code across files without the compiler getting confused, explained with a working example.
Getting Started Quiz
7 questions
Variables, Types and Overflow
Why an int has a maximum value, what happens when you exceed it, and the type mistakes that silently produce wrong answers.
Enums, Casting and Type Conversions
Give meaningful names to a fixed set of choices, and understand exactly when C++ converts one type into another for you — and when you have to do it yourself.
Variables & Types Quiz
7 questions
Operators and Precedence
Every operator you need early, the integer division trap, and why ++i and i++ are not the same thing.
sizeof and Casting Operators
How to ask the compiler exactly how big a type is, why that number sometimes surprises you, and the different cast operators C++ actually offers.
Operators Quiz
7 questions
Loops and Conditionals
Branching and repetition, plus the off-by-one and scoping mistakes that break otherwise correct logic.
Nested Loops
What happens when a loop sits inside another loop, why the work multiplies instead of adding, and the loop shapes that reappear in almost every real problem.
Pattern Printing
A systematic way to approach any star, number or character pattern problem — triangles, pyramids, diamonds and hollow shapes, all built from the same recipe.
Control Flow Quiz
13 questions
What Is Object-Oriented Programming
The mental shift from "data and functions that act on it, kept separate" to "objects that bundle both together" — and the four ideas that define OOP.
Structs and Classes
Grouping data, constructors, and the difference between struct and class that matters less than people think.
Access Modifiers — public, private and protected
Exactly what each access level allows and blocks, why hiding data is a feature and not an inconvenience, and the getter/setter pattern that makes it practical.
Constructors, Destructors and the Rule of Three
What actually happens when an object is born and when it dies, why copying an object can silently corrupt memory, and the rule that fixes it.
Inheritance Basics
How one class can reuse and extend another instead of copy-pasting it, and exactly what a derived class inherits, hides and adds.
Composition and Access Control
When to reach for inheritance versus building an object out of other objects, and the subtle rules of public, protected and private inheritance.
Virtual Functions and Dynamic Binding
How to make a base-class pointer actually call the derived class's version of a method — the one keyword that makes polymorphism work.
Abstract Classes and Operator Overloading
How to force every derived class to implement certain behaviour, and how to make your own types work with +, ==, and << the way built-in types do.
OOP Basics Quiz
29 questions
Getting Started Quiz
Getting Started · 7 questions
Variables & Types Quiz
Variables & Types · 7 questions
Operators Quiz
Operators · 7 questions
Control Flow Quiz
Control Flow · 13 questions
Input & Output Quiz
Input & Output · 6 questions
Functions Quiz
Functions · 6 questions
Arrays & Strings Quiz
Arrays & Strings · 6 questions
Pointers & Memory Quiz
Pointers & Memory · 7 questions
Advanced Pointers Quiz
Advanced Pointers · 10 questions
Bit Manipulation Quiz
Bit Manipulation · 10 questions
OOP Basics Quiz
OOP Basics · 29 questions
STL Essentials Quiz
STL Essentials · 6 questions
C++ Basics Final Assessment
Final assessment · 10 questions