Interactive course
Course C++
Learn modern C++ from scratch to advanced level with 10 modules, 26 lessons, interactive memory/RAII labs, diagnostic quizzes, and verified exercises with Tree-sitter AST: from primitive types and pointers up to OOP, smart pointers, template, move semantics, STL ranges, exceptions, and concurrency.
Static verification via keywords + execution on Compiler Explorer (one click for copy code + open).
01 · Fundamentals of C++
The foundations: variables, primitive data types, arithmetic-logical operators and input/output management with std::cout and std::cin.
- 1.1Variables and data typesPrimitive types (int, double, char, bool) and complex objects (std::string). Declaration, initialization and scoping.~12 min
- 1.2OperatorsArithmetic, relational, logical and assignment operators. Precedence and expressions.~10 min
- 1.3Input/Output and streamsThe standard library streams iostream: send output with std::cout and read input with std::cin.~12 min
02 · Flow Control
Conditional expressions for making decisions and iterative loops for repeating instructions.
- 2.1Conditional statements (if-else)Control conditional execution with if, else if, and else constructs.~12 min
- 2.2Iterative cyclesRepeat blocks of code with for loops, while, and do-while.~14 min
- 2.3Education switchManage multiple branchings in an orderly manner based on constant integer or char values.~10 min
03 · Functions and References
Break down the code into reusable blocks and understand how C++ passes data into memory.
04 · Object Oriented Programming
Introduce classes, encapsulation, and automatic resource management.
05 · Data Structures and Pointers
Manage data collections and understand how physical memory works with pointers.
06 · Inheritance and Polymorphism
Extend existing classes and implement polymorphic behavior via virtual functions and inheritance.
07 · Smart Pointers
Modern and secure dynamic memory management without leaks thanks to intelligent standard library pointers.
08 · Templates
Introduce generic programming by writing reusable functions and classes that are independent of data types.
09 · Move Semantics, Lambda and STL Modern
Zero out useless copies with rvalue references (&&), express inline logic with lambda and compose pipeline STL / C++20 ranges.
- 9.1Move Semantics, Rvalue (&&) and std::moveLvalue vs rvalue, O(1) shift constructors/assignments, noexcept, and the 0/5 rule.~18 min
- 9.2Lambda Expressions and Capture ListsSyntax [captures](parameters) -> return, capture by value vs reference [&], mutable and generic lambda auto.~16 min
- 9.3Algorithms STL (<algorithm>, <numeric>) & C++20 Rangesstd::sort, std::find_if, std::accumulate and lazy views std::views::filter | transform without intermediate allocations.~16 min
- 9.4Zero-Copy Views: std::string_view and std::spanPass non-proprietary views on contiguous strings and buffers avoiding Heap copies and lifetime dangling.~15 min
10 · Modern Error Handling and Competition
Model absence and errors at the type level (optional, variant, exceptions RAII) and write multithreaded code without data races.
- 10.1Safe Types: std::optional and std::variantReplace magic sentinels and insecure unions with std::optional<T>, std::nullopt, std::variant and std::visit.~16 min
- 10.2Exceptions, Stack Unwinding & RAII Exception Safetythrow, try/catch for const&, std::exception hierarchy, noexcept and guaranteed release of resources in stack unwinding.~16 min
- 10.3Threads in C++: std::thread and std::jthread (C++20)Initiate concurrent executions, join/detach, safe argument passing, and RAII auto-join with std::jthread.~16 min
- 10.4Mutual Exclusion: std::mutex, scoped_lock and std::atomicPrevent data races and deadlocks by acquiring RAII locks with std::lock_guard / std::scoped_lock and lock-free atomic counters.~16 min
Tools & related tracks for Course C++
Explore structured learning tracks on eLearner.app, or jump straight into the live playground and printable cheatsheet for this course.
Recommended next courses
Course C++ FAQ
How many lessons and hands-on exercises are in Course C++?
Course C++ covers 10 modules, 26 interactive lessons, and 130 practical exercises (~6 hours total) with instant automated validation.
Do I need local setup or IDE installation for Course C++?
No installation required: every exercise and the interactive Course C++ playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.
Is Module 1 of Course C++ free without creating an account?
Yes. Module 1 (“Module 1 — Fundamentals of C++”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.
Which companion courses pair best with Course C++?
Course C++ pairs smoothly with SQL, Linux, and Git courses on eLearner.app to round out database querying, CLI workflows, and version control.