C++ from Scratch
C++20 from your first program to the STL: input and output, types, conditions and loops, arrays, structs, pointers and memory, functions and lambdas, classes, inheritance, polymorphism and templates, files and dates, errors and debugging, containers, iterators and algorithms, namespaces. Your code is compiled by a real clang++ right in the browser.
Log in to solve tasks and save your progress.
1. Basics
1
Your first program
10 XP
2
Syntax
10 XP
3
Output: formatting
10 XP
4
Comments
10 XP
5
Variables
10 XP
6
Warm-up: double the number warm-up
5 XP
7
Input: std::cin
10 XP
8
Data types
10 XP
9
Operators
10 XP
10
Warm-up: word length warm-up
5 XP
11
Strings: std::string
10 XP
12
Maths: <cmath>
10 XP
13
The bool type
10 XP
2. Conditions and loops
3. Arrays, structs, pointers and memory
4. Functions
5. Classes and OOP
1
OOP: objects instead of scattered data
5 XP
2
Warm-up: a hero warm-up
5 XP
3
Classes and objects
10 XP
4
Class methods
10 XP
5
Constructors
10 XP
6
Access specifiers
10 XP
7
Encapsulation: getters and setters
10 XP
8
Friend functions
10 XP
9
Inheritance
10 XP
10
Polymorphism: virtual
10 XP
11
Templates
10 XP
12
Files: fstream
10 XP
13
Date and time: <chrono>
10 XP
6. Errors
7. Data structures and the STL
8. Namespaces
Tasks unlock in order: solve the current one to unlock the next. Warm-ups can be skipped.