CPP
Learn C++ fundamentals, resource management, and debugging.
Explore CPP
Practical learning guides with original examples and clear next steps.

Write a C++ Project Build Note That Makes Compiler Assumptions Visible
A C++ project may compile on its author’s machine while leaving another reader unsure which compiler, language standard, or dependencies it expects. A build…

Debug a C++ Boundary Error with a Minimal Test Case
Boundary errors often appear at the first or last element of a collection. A minimal test case can expose the mistaken assumption more clearly…

Use Const to Communicate What a C++ Function May Change
A function signature can explain part of its contract before the reader opens the implementation. Const helps communicate that a particular access path should…

Prefer a Vector for a Growing Sequence Before Writing Manual Storage
A growing sequence needs to manage storage, element lifetime, and bounds. For many learning projects, a standard vector lets you focus on the program’s…

Understand C++ Ownership by Asking Who Releases the Resource
Ownership describes responsibility for a resource’s lifetime. Before choosing a pointer type, ask who creates the resource, who may use it, and who ensures…