C++ Course

C++ takes C's close-to-the-hardware model and builds a proper language for large programs on top of it: classes that bundle data with behavior, references that make functions safer to call, and a standard library full of containers and algorithms you'd otherwise have to write yourself. It still trusts you with memory and performance the way C does — it just gives you better tools for managing that trust.

What you'll learn

This course assumes no prior C or C++ experience, though if you've written C before you'll recognize the syntax immediately and can move quickly through the early lessons. You'll start by getting a program compiled and running, work through the core syntax — variables, operators, conditionals, loops, functions — and then spend the second half on the ideas that actually distinguish C++ from C: arrays versus the safer std::vector, the std::string type, pointers and references, and finally classes, constructors, and inheritance. Every lesson runs real code through g++ and shows you exactly what prints, so you can trust what you're reading matches what your own compiler will do.

Lessons

  1. Introduction
  2. Variables & Data Types
  3. Operators
  4. Conditionals
  5. Loops
  6. Functions
  7. Arrays & Vectors
  8. Strings
  9. Pointers & References
  10. Classes & Objects
  11. Constructors & Destructors
  12. Inheritance & Polymorphism
Where to start: begin with Introduction even if you already know another language — it covers how C++ gets compiled and run, which every later lesson assumes you understand. The lessons build on each other in order, especially from Pointers & References onward, so it's worth resisting the urge to skip ahead to classes.