C++ is a powerful general-purpose programming language designed for building efficient, high-performance software. It can be used to develop operating systems, browsers, games, and more. Please read the official documentation to learn more.
C++ by Example is a hands-on introduction to C++ using annotated example programs. Check out the first example or browse the full list below.
Examples
- Hello World - Your first C++ program
- Values - Basic types and values
- Variables - Declaring and using variables
- Constants - Working with constants
- For Loops - Iteration in C++
- If/Else - Conditional statements
- Switch - Multi-way branching
- Arrays - Fixed-size collections
- Vectors - Dynamic arrays
- Maps - Key-value pairs