C++, made easy.
A free, friendly guide to C++ for total beginners. Short lines. Plain words. A tiny example for every idea.
Go one lesson at a time. Each lesson is split into small boxes โ read one box, try the code, then move on. You do not need to remember everything. Come back anytime.
#include <iostream> int main(){ std::cout << "Hello, world!\n"; return 0;}Getting started
What coding is, what C++ is, and how to run your very first program.
C++ basics
Statements, printing, comments, variables, reading input and simple math.
Types of data
Whole numbers, decimals, true/false, characters, text, and values that never change.
Operators
Math, shortcuts, comparing things, and combining yes/no questions.
Making choices
Let your program decide what to do with if, else and switch.
Repeating things (loops)
while, for, break and continue โ plus random numbers and a guessing game.
Functions
Save a set of steps under a name, give it inputs, and get answers back.
Fixing bugs (how not to get stuck)
Read error messages, find bugs step by step, and know what to do when you're stuck.
Holding lots of data
Lists that grow (vector), fixed lists (array), text tools, and key-value maps.
References and pointers
Share the same box (references), point at a box (pointers), and manage memory safely.
Grouping data: enums, structs and classes
Make your own types: named options, groups of values, and objects with behaviour.
Going further
Templates, algorithms, inheritance, exceptions and files โ your next steps.
Power tools and projects
Operator overloading, move semantics, lambdas, threads โ and two full projects to build.
Reverse engineering basics
Look inside compiled programs: read assembly, use a disassembler and debugger, and crack your own crackme โ safely and legally.
- 13.1What is reverse engineering?
- 13.2From C++ to a program file
- 13.3Registers and instructions
- 13.4Functions in assembly
- 13.5if statements and loops in assembly
- 13.6Structs and classes in memory
- 13.7Your reverse engineering toolbox
- 13.8Project: make and crack your own crackme
- 13.9Where to practise legally
- 13.xChapter 13 summary and quiz
Practice problems
Extra exercises with hints and answers. โญ = easy, โญโญ = medium, โญโญโญ = challenge.
Quick reference
Look-up pages for the most-used tools. Short and to the point.