← Parminces
Lippman, Lajoie & Moo, 5th Edition (2012)

C++ Primer

The most respected C++ textbook, rebuilt chapter by chapter as interactive lessons. From variables to templates, with live memory diagrams and code simulations at every step.

10
Chapters
40+
Simulations
80+
Quizzes
Part I: The Basics
Chapter 2

Variables and Basic Types

Primitive types, variables, const, references, pointers, and type conversions.

Chapter 3

Strings, Vectors, and Arrays

Library string, vector, iterators, and built-in arrays with pointer arithmetic.

Chapter 6

Functions

Parameter passing, return types, overloading, default arguments, inline, constexpr.

Part II: The C++ Library
Chapter 9

Sequential Containers

vector, deque, list, forward_list. Insert, erase, resize, and iterator invalidation.

Chapter 10

Generic Algorithms

find, sort, accumulate, copy, transform. Lambdas, captures, iterator categories.

Chapter 12

Dynamic Memory

new/delete, shared_ptr, unique_ptr, weak_ptr. RAII, ownership, and memory leaks.

Part III: Tools for Class Authors
Chapter 7

Classes

Data abstraction, encapsulation, constructors, static members, friends, and access control.

Chapter 13

Copy Control

Copy constructor, copy assignment, destructor, move semantics, Rule of Five.

Chapter 15

Object-Oriented Programming

Inheritance, virtual functions, dynamic binding, abstract base classes, access control.

Chapter 16

Templates and Generic Programming

Function templates, class templates, template specialization, variadic templates.