Skip to content
UPEEC

C++

C with classes, templates and a rich standard library — used for games, high-performance software and modern embedded systems.

Intermediate
Comments 0

C++ keeps C's speed and low-level control and adds object-oriented programming, generic programming (templates), automatic resource management (RAII), and the Standard Template Library. Arduino sketches are actually C++.

Sub-topics (10)

C++ vs C

What C++ adds to C, and what stays the same.

Easy♥ 0🔖 0💬 0

References in C++

A reference is another name for an existing variable — safer and cleaner than a pointer for passing arguments.

Easy♥ 0🔖 0💬 0

Inheritance in C++

Derive new classes from existing ones to reuse code and model "is-a" relationships.

Intermediate♥ 0🔖 0💬 0

Operator Overloading

Give operators like +, == and << meaning for your own types.

Intermediate♥ 0🔖 0💬 0

Templates

Write code once that works with many types — the basis of the STL.

Intermediate♥ 0🔖 0💬 0

Standard Template Library

Ready-made containers, iterators and algorithms that cover most data-handling needs.

Intermediate♥ 0🔖 0💬 0

Smart Pointers

unique_ptr and shared_ptr manage heap memory automatically — no manual delete.

Intermediate♥ 0🔖 0💬 0

RAII

Resource Acquisition Is Initialisation: tie every resource to an object's lifetime.

Intermediate♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.