C++
Games, systems and high performance
Learn to write C++ programs from scratch: from your first “Hello, world!” to variables, conditions, loops and functions, and on to pointers, classes, the STL and modern C++17 features. Every example shows the exact output the program prints. By the end you will have a solid foundation for games, fast algorithms and programming olympiads.
- Beginner
- Intermediate
- Advanced
- lessons
- 10
- modules
- 4
- tests
- 10
- hours of lessons
- 3
Course content
4 modules, 10 lessons. Each module has its own level, and the lessons follow in order.
C++ basics
Compile your first program and learn about variables, types, operators, conditions and loops.
- 1What is C++? Your first programFind out where C++ is used and what compiling means, then write your first program with `std::cout`.
- 2Variables, types and operatorsDeclare variables, work with `int`, `double`, `char`, `bool`, `std::string` and `auto`, and learn arithmetic operators and input with `std::cin`.
- 3Conditions and loopsTeach your program to make decisions and repeat work: `if`, `switch`, comparison and logical operators, `for`, `while`, `break` and `continue`.
Functions, containers and memory
Split code into functions, store data in arrays, vectors and strings, and understand how pointers and memory work.
- 4FunctionsWrite your own functions: return values, parameters, prototypes, overloading, default arguments, and passing by value or by reference.
- 5Arrays, vectors and stringsKeep many values under one name: fixed-size arrays, the growable `std::vector` and `std::string` for working with text.
- 6Pointers, references and memoryLearn about memory addresses, the `&` and `*` operators, `nullptr`, dynamic memory (`new`/`delete`) and `std::unique_ptr`, which manages it safely.
Object-oriented C++
Create your own classes and use inheritance and virtual functions to achieve polymorphism.
The STL and modern C++
Write short, reliable code with the standard library's containers and algorithms, lambdas and C++17/20 features.
- 9The STL: containers and algorithmsWork with the Standard Template Library: `std::map`, `std::set`, iterators and ready-made algorithms such as `std::sort`, `std::find` and `std::count`.
- 10Modern C++: lambdas, structured bindings and constexprWrite short, reliable code with features from C++11 to C++20: lambda expressions, structured bindings, `const` and `constexpr`.
More in this category
Coding15 subjects