Learn C++
Build expressive, efficient programs with modern C++.
Start learning 9 lessons · about 2.5 hours · free
About this track
Start with a compiled C++20 program, then learn types, control flow, functions, standard containers and algorithms, classes, resource management, and templates. C++ has multiple language standards; this track uses C++20 compiled with GCC 14 and -std=c++20. Exercises compile and run with Compiler Explorer, a free public service, so submitted code and test input are sent to that service.
Before you start
- No programming experience is required.
- A modern browser with JavaScript enabled.
- Exercises use C++20 on GCC 14 through Compiler Explorer; code and test input are sent to that service.
- Unit 1 · 0/3 lessons
C++ foundations
Compile programs, work with values, and control execution. Badge: C++ starter
- 0x001Meet C++ and compile your first programWrite a small C++ program and identify the standard used in this track. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x102Use types, strings, and input streamsStore values with clear types and read input using C++ streams. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x203Control flow with conditions and loopsBranch on conditions and repeat work with familiar control structures. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- Unit 2 · 0/3 lessons
Functions and the standard library
Reuse functions and work with strings, vectors, and algorithms. Badge: Library explorer
- 0x304Build functions and pass by referenceGive work a name, return results, and avoid unnecessary copies. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x405Work with strings and vectorsUse standard containers to manage text and growable sequences safely. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x506Use the standard algorithms librarySort and search collections with reusable, well-tested algorithms. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- Unit 3 · 0/3 lessons
Types and generic code
Design classes, manage resources, and read templates. Badge: Modern C++ builder
- 0x607Model data with classesEncapsulate state and preserve valid object invariants. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x708Manage resources with RAIIUse object lifetime and smart pointers instead of manual ownership. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
- 0x809Read templates and generic codeUnderstand how templates let functions and containers work with many types. 16 min 0/1 exercises solved 16 min 0/1 exercises solved
Gostou da aula? 😆👍
Apoie nosso trabalho com uma doação: