Glossary
Every new word from the lessons, in plain language. Click a lesson link to read it in context.
#
& (ampersand) has two jobs
In a type (int& r), & means reference. In front of a variable (&x), it means address of. Same symbol, different jobs.
A
auto
auto tells C++ "work out the type for me". Here it becomes std::string.
B
breakpoint
A breakpoint is a stop sign on a line. Click in the margin next to a line number (a red dot appears). Then start with debugging (F5 in most IDEs).
Bug
A mistake in a program that makes it act wrongly. Finding and fixing bugs is called debugging.
C
Calling convention
The agreed rules for where arguments go and where the return value comes back. On Linux and Mac (the "System V" rules), integer arguments go in rdi, rsi, rdx, rcx, r8, r9. On Windows, they go in rcx, rdx, r8, r9. Both return values in rax / eax.
class
A class is like a struct, but it also holds functions that work on its data. These are called member functions.
Code
The steps of a program, written in a language the computer tool can understand. Writing code is also called programming or coding.
compile error
A compile error means the compiler can't understand your code. The program won't even be built.
Compiler
A tool that reads your C++ code and turns it into a program your computer can run. It also tells you when your code has mistakes.
Conditional operator (? :)
condition ? a : b is a tiny if/else that gives a value: "if condition, then a, otherwise b". It is called the conditional operator.
constructor
A constructor is a special member function that runs automatically when an object is created. It has the same name as the class and no return type.
crackme
A crackme is a small program that asks for a secret, made on purpose to be reversed. Let's make our own and crack it in three levels.
D
debugger
A debugger lets you pause your program and look inside it while it runs. It's like a slow-motion replay.
Declaration vs definition
A declaration says a thing exists (its name and type). A definition also includes the body — the actual steps.
Decompiler
A tool that tries to turn assembly back into C-like source code. It can't bring back your original names or comments, but it's much faster to read than raw assembly.
E
Encapsulation
Hiding an object's data and only allowing access through its functions. It keeps objects in a valid state and lets you change the inside later without breaking other code.
Executable format
The layout rules for program files. Windows uses PE (Portable Executable). Linux uses ELF. Macs use Mach-O. The ideas are the same.
expression
An expression is anything that makes a value. 2 + 3 is an expression. So is age * 12.
F
function
A function is a group of steps with a name. You write it once, then use it as many times as you like.
I
IDE
Short for Integrated Development Environment. An app that puts an editor, compiler and debugger together in one place. Visual Studio and CLion are IDEs.
L
lambda
A lambda is a function with no name, written right where you need it (11.2 — The algorithm toolbox).
logic error
A logic error means your code runs, but does the wrong thing. The compiler can't catch it, because the code is "correct C++" — it is just not what you meant.
M
magic number
A magic number is a number in the code with no explanation.
O
Object
In C++, a piece of memory that holds a value is called an object. A variable is simply an object with a name.
P
parameter
The parameter is the box in the function (name). The argument is the value you send in when calling ("Ana").
Parameter vs argument
The parameter is the box in the function (name). The argument is the value you send in when calling ("Ana").
pointer
A pointer is a variable that holds an address. It's like a note that says where a box is.
program
A program is a list of steps that a computer follows. In order. One at a time.
R
reference
A reference is a second name for an existing variable. Not a copy — the same box.
Rubber duck debugging
Explaining your code to an object (like a rubber duck) line by line. Saying it out loud makes you notice what you skipped over in your head.
S
Standard
The official rule book for C++. Each new version (C++11, C++17, C++20...) is called a standard.
statement
A statement is one step in your program. It is like one sentence.
std::jthread
A thread that automatically waits ("joins") for its work to finish when it goes away (C++20). The older std::thread needs you to call .join() yourself.
Syntax
The grammar rules of a language. A syntax error means you broke a rule, like forgetting a ; or a }. The compiler will tell you.
U
Undefined behavior
When a program does something the rules do not allow — like using a variable that has no value — anything can happen. It might work, crash, or act strangely. This is called undefined behavior.
V
variable
A variable is a box in memory that holds a value. It has a name so you can use it later.
vtable
A hidden table of function addresses that a class with virtual functions uses to decide, while running, which version of a function to call.
W
warning
A warning is not an error. The program still builds. But warnings often point at real bugs.
X
XOR
A bit operation (^ in C++). Doing x ^ key scrambles a byte, and doing ^ key again un-scrambles it. Simple to use, but also simple to undo once you spot it.