โ C++
C with classes and a powerful standard library. A top choice for competitive programming and game engines.
- 1. Getting started with C++
Your first program, input and output with streams, and references. - 2. Strings and vectors
std::string and std::vector, the two types you will use most. - 3. Functions and overloading
Overloading, default arguments, and passing by reference. - 4. Classes and objects
Constructors, private data and const methods. - 5. Operator overloading
Give your own types +, < and <<, and why money is stored in paise. - 6. Inheritance and virtual functions
Reuse code, and let each class supply its own behaviour. - 7. Templates
Write one function or class that works for many types. - 8. The STL
map, set, queue and algorithms, essential for coding rounds. - 9. Lambdas and algorithms
Short inline functions for sort, count_if and transform. - 10. Exceptions and RAII
throw and catch, and how destructors clean up for you. - 11. C++ quick reference
Everyday syntax and functions on one page.
Finished? Go deeper in the C++ learning path and earn a free certificate.