THE READING ROOM / BOOK GUIDE
C++ Primer
An introduction to C++ that starts with what a program is and works toward writing real code, paced for readers new to the language.
About the book
C++ Primer is Stanley B. Lippman's introduction to C++ for people learning the language for the first time. It begins with what a C++ program actually is, then works through the syntax and structure a new programmer needs before tackling larger programs. Explanation comes with worked examples, so the reader sees each construct inside a complete program instead of a reference listing.
The book's subject is the language itself: types, expressions, statements, functions, classes, and the mechanics of compiling and running programs. Its approach is incremental. A construct is introduced, then shown in a small example, and the next section builds on it. The first edition appeared in 1989, when C++ was still settling into its modern form, and later editions were revised to track changes in the language.
The work sits between a tutorial and a primer in the older sense: a compact teaching text meant to be read in sequence. Readers who want a structured first pass through C++ syntax and program construction will find that shape useful. Those seeking coverage of modern language features should check which edition they hold before relying on it.
How to read it
Read it in order. The material builds, and skipping early sections on types and expressions makes later examples harder to follow. Type out the examples rather than reading them passively; the compiler will catch mistakes that reading will not. Keep a compiler and a scratch file open alongside the book so each new construct can be tested immediately.
Expect a steady, explanatory pace rather than a brisk tour. The prose is instructional and example-driven, so the difficulty lies in the volume of material and the need to practice, not in dense argument. Where an example seems opaque, reduce it to a smaller program and observe what changes. Editions differ in how much modern C++ they cover, so confirm which one you have before treating any detail as current.
Who it suits
This suits readers with little or no C++ experience who want a sequenced, example-based introduction and are willing to work through exercises and type code. It also helps programmers coming from another language who want a structured refresher on C++ fundamentals. Readers who already know the basics will find it slow, and those wanting a modern reference should look for a current edition or a text focused on recent standards.
Reading considerations
The first edition dates from 1989, so its coverage reflects early C++. Modern features such as later standard library additions and newer language facilities may be absent or described differently. Check the edition before relying on specifics, and treat any code as a starting point to compile and test rather than as authoritative for current practice.
Follow the HN conversation
53 different recommenders are recorded in the upstream dataset. These are AI-classified source counts, not an independent rating.
Search HN comments about this book ↗
Explore videos on the same subject ↗
Book notes prepared with DeepSeek, using catalogue records and Open Library subject information. They are reading guidance, not a personal review or a verified chapter-by-chapter account. Book details can vary by edition. HN data methodology · Book metadata and covers.
