All topics

Every guide on the site, grouped by topic. 386 articles and counting.

Getting Started

Whether to learn C++, how hard it is and how it compares with C, Python, Java and Rust.

Syntax and Functions

Data types, operators, control flow, keywords, functions and the preprocessor.

Primitive Data Types

long long

Signed vs Unsigned

double and float

Integer Limits

sizeof

typeof and decltype

Enums

Declaration and Initialization

Conditional Operator

Comparison Operators

Assignment Operators

Increment Operator

Unary Operators

Shift Operators

Bitwise Operators

Power Operator

Logical and Arithmetic Operators

Dot and Scope Operators

While Loops

Do While Loops

Break Statement

Switch Case

If Else Statements

goto

Recursion

Function Overloading

Function Prototypes

Static Functions

inline

const

using namespace std

using

cout

Lambda Functions

std::function

Functions as Arguments

Function Pointer Arrays

Header Guards

Header Files

The Preprocessor

Macros

Classes and Design

Structs, classes, object oriented features and the principles behind well organized code.

Struct vs Class

Struct Constructors

Constructors

Inheritance

Polymorphism

Encapsulation

Abstract Classes

Friend Functions

Access Modifiers

Operator Overloading

Static Classes

final

Template Metaprogramming

SOLID Principles

Dependency Injection

Concurrency

Strings, Containers and Memory

Working with strings, arrays and standard containers, plus how memory works and how to debug it.

String Methods

Finding in Strings

String Contains

Comparing Strings

Concatenating Strings

Reversing Strings

Iterating Over Strings

Splitting Strings

stringstream

Reading String Input

Switching on Strings

String to Int

Int to String

Char to Int

Vector Initialization

Dynamic Arrays and Linked Lists

std::array

std::list

List vs Array

Dictionaries with std::map

Hash Sets

std::set

Tuples

std::optional

Returning Arrays

Passing Arrays

Arrays of Structs

Random Numbers

NULL vs nullptr

Heap vs Stack

Segmentation Faults

Modifiable Lvalue Error

Valgrind and Memory Leaks