C++ · Intermediate
C++ Foundations
Fifty-six lessons covering types, control flow, functions, vectors, maps, classes, pointers and the standard library, with compiled programs checked against expected output.
Section 1 · First programs
- 1 Hello, C++ C++ —
- 2 The main function C++ —
- 3 Variables and types C++ —
- 4 Arithmetic C++ —
- 5 Strings C++ —
- 6 Conditions C++ —
- 7 Loops C++ —
- 8 While loops C++ —
- 9 Debug your program C++ —
- 10 Comments and style C++ —
Section 2 · Decisions and repetition
- 11 Compare numbers C++ —
- 12 Logical operators C++ —
- 13 Nested if C++ —
- 14 Counting with a loop C++ —
- 15 Nested loops C++ —
- 16 break and continue C++ —
- 17 Arrays C++ —
- 18 Loop over an array C++ —
- 19 Switch C++ —
- 20 Ternary operator C++ —
Section 3 · Functions
- 21 Define a function C++ —
- 22 Return types C++ —
- 23 Parameters C++ —
- 24 Pass by reference C++ —
- 25 Default arguments C++ —
- 26 Recursion C++ —
- 27 Function overloading C++ —
- 28 Use functions to reuse code C++ —
- 29 Test a function C++ —
- 30 Build a small library C++ —
Section 4 · Collections and data
- 31 std::vector C++ —
- 32 Vector indexing C++ —
- 33 Loop over a vector C++ —
- 34 Structs C++ —
- 35 Vector of structs C++ —
- 36 Sum a column C++ —
- 37 Count matching rows C++ —
- 38 Find the largest C++ —
- 39 Sort a vector C++ —
- 40 Maps C++ —
Section 5 · Objects and real programs
- 41 Classes C++ —
- 42 Member functions C++ —
- 43 Constructors C++ —
- 44 Pointers C++ —
- 45 References vs pointers C++ —
- 46 Check the input C++ —
- 47 Format money C++ —
- 48 A fee report C++ —
- 49 Two students, one comparison C++ —
- 50 Your first C++ project C++ —
Capstone: structs, maps and errors
- 51 Print an invoice table C++ —
- 52 Sum a vector with a function C++ —
- 53 Define a struct for a student C++ —
- 54 Search inside a string C++ —
- 55 Count with a map C++ —
- 56 Catch a bad number C++ —
Final exam and certificate
Twenty questions from the whole track. Pass mark is 60%. Retakes are free and the best score is the one printed on your certificate.
Create a free account to take the exam