Learn C++23 by compiling it.
A guided course in modern C++ for complete beginners. Every step is a small program you run, check and tick off, so you always know where you stand.
#include <print>
#include <string_view>
int main() {
std::string_view lang = "C++23";
std::print("Hello, {}!\n", lang);
}
The lessons
Lessons are published as they are written. Your ticks are saved as you go: in this browser for guests, on your account once you log in.
0 of 2 lessons complete
- 1. Your first C++ program0/7 checks
Write, compile and run your first programs in the browser, store values in variables, format output, and learn to read the compiler's messages. No experience needed.
- 2. Types, auto and const0/8 checks
Work with whole numbers, decimals, characters, true/false and text; see why the type decides the answer; let the compiler pick a type; and protect values with const.
Your progress is saved in this browser. Log in or create a free account to keep it across devices.
How a lesson works
-
Read one step
Each step introduces one new idea and explains every term the first time it appears.
-
Compile the program
Paste it into Compiler Explorer in your browser, or build it locally once your toolchain is set up.
-
Tick the check
Every step ends with an exact result to look for. When yours matches, tick it and move on.
Recent questions
No questions yet. If a check doesn't pass, post the code and the compiler's exact message.