Skip to content

Free · C++17

C++ Programming

Go from C++ syntax to object-oriented design, templates, the STL and modern C++ with smart pointers and lambdas.

40
Tutorials
25
Projects
225
Practice MCQs
9 h
Reading time

What you will learn

  • Write idiomatic C++17 programs
  • Design classes with constructors, destructors and encapsulation
  • Apply inheritance, virtual functions and polymorphism
  • Write generic code with templates
  • Use STL containers, iterators and algorithms
  • Manage resources with RAII and smart pointers

Syllabus

9 modules · 40 topics

  1. What C++ is and how it relates to C, setting up a compiler, and the anatomy of a C++ program: headers, namespaces, streams and main.

  2. C++ types and initialisation (including auto and brace initialisation), operators, decisions with if and switch, and loops including the range-based for.

  3. Defining and calling functions, overloading, inline functions, default arguments, and references — C++'s safer alternative to pointers for passing arguments.

  4. Raw pointers and dynamic memory with new/delete, built-in arrays versus std::array and std::vector, std::string, and structs in C++.

  5. Defining classes, constructors and destructors, RAII, encapsulation with access specifiers and invariants, and abstraction through clean interfaces.

  6. Deriving classes, compile-time and run-time polymorphism, overriding with override and final, how virtual functions work (vtables), and operator overloading.

  7. Generic programming with function and class templates, error handling with exceptions, organising code with namespaces, and reading and writing files with fstream.

  8. Lambda expressions, smart pointers for automatic memory management, and the core features of C++11–C++20 that define idiomatic modern C++.