Loading your page…
YOUR LEARNING PATH
Short exercises, progressive hints and explanations to help you move forward.
Create a free account to access the lessons and save your progress. Free learning uses daily hearts.
Create my accountAlready have an account? Log inExplore C++ through types, functions and objects. Then learn standard containers and resource management.
Before you start: Basic algorithmic thinking helps; the first exercises introduce essential syntax.
#include <iostream>
#include <vector>
int main() {
std::vector<int> values{2, 4, 6};
int total = 0;
for (int value : values) total += value;
std::cout << total << "\n";
}std::vector stores the numbers. The loop visits their values without a manual index. std::cout prints the sum, 12.
Try it: Add a value with values.push_back(8) before the loop, then check the sum.
Want to understand what each plan includes? Compare plans
Modern C++ (C++20/C++23) pairs low-level hardware performance with elegant abstractions (smart pointers, STL, templates). It powers 3D game engines (Unreal Engine) and high-frequency computing.