Cover of C++ Primer

C++ Primer

by Stanley B. Lippman · first published 1989

74mentions
53recommended by
69HN commenters
2008–2026first – last mentioned

77% recommend23% neutral

Why HN recommends it

A beginner-friendly introduction that teaches modern C++11 from the start, using the standard library early and including exercises. Suits newcomers and programmers from other languages, and works as a reference.

Summarised by Claude from recommending comments

The third edition of the C++ Primer combines Stanley Lippman's practical experience with Josee Lajoie's inside knowledge of the ANSI/ISO Standard C++. This tutorial is rewritten to describe the features and programming usage of Standard C++. Especially useful for developers new to C++ are the many real-world programming examples that illustrate the design of generic and object-oriented programs, the use of templates, and other aspects of program design using Standard C++. In addition, the C++ Primer provides usage and efficiency guidelines where appropriate.

Affiliate links. As an Amazon Associate I earn from qualifying purchases.

Mentions per year

120 2007: 0 mentions2008: 2 mentions2009: 1 mention2010: 2 mentions2011: 0 mentions2012: 8 mentions2013: 5 mentions2014: 12 mentions2015: 3 mentions2016: 4 mentions2017: 8 mentions2018: 6 mentions2019: 5 mentions2020: 1 mention2021: 1 mention2022: 1 mention2023: 10 mentions2024: 0 mentions2025: 0 mentions2026: 1 mention200720172026

What Hacker News says

  • recentdarkness · Nov 27, 2013 · Recommends

    Well it depends on where you stand. For beginners a very good book from my experience is C++ Primer by Stanley B. Lippman, Josée LaJoie, Barbara E. Moo. The 5th edition even goes into the newer topics like the aforementioned lambdas, also variadic templates. A nice thing is that it comes with exercises,…

    on “The Rook's Guide to C++” ↗
  • Veratyr · Sep 7, 2017 · Recommends

    As a newcomer to C++ myself, I found Stanley Lippman's C++ primer to be helpful. The latest edition includes the newer features. And in case it helps, the main things I find myself using differently to C are: - Smart pointers. If you're not using them, use them. They're…

    on “C++17 is formally approved” ↗
  • wheels · Apr 16, 2008 · Recommends

    "C++ Primer", by Stanley Lippman, Addison Wesley That's probably the best introduction book. It's super-long, but after you've worked with C++ for a while you'll understand why. "The C++ Programming Language"…

    on “Ask YC: C++” ↗
  • sedeki · Feb 22, 2014 · Recommends

    "C++ Primer" by Lippman et al. is the best book in my opinion http://www.amazon.co.uk/C-Primer-Stanley-B-Lippman/dp/032171...

    on “Ask HN: How much would you charge to mentor me in C++?” ↗
  • kruk · Sep 7, 2015 · Recommends

    Stanley B. Lippman - C++ Primer - http://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/032171... I haven't been using C++ for a few years now and I needed a quick refresher. While I wouldn't call C++ Primer quick it covers all the…

    on “Ask HN: What are the latest and greatest books on your favorite language?” ↗
  • parasight · Dec 6, 2017 · Recommends

    I'd recommend to choose one of these two books: Programming: Principles and Practice Using C++, 2nd Ed., Bjarne Stroustrup https://www.amazon.com/Programming-Principles-Practice-Using... C++ Primer, 5th Ed., Stanley Lippman https://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/03217... For a very brief introduction: A Tour of C++, Bjarne Stroustrup https://www.amazon.com/Tour-C-Depth/dp/0321958314/ref=sr_1_1...

    on “C++17 Standard Published” ↗
  • tolger · Mar 7, 2018 · Recommends

    I found "C++ Primer" by Lippman et al very well written and comprehensive. It includes C++11 features and every chapter has exercises to make sure you understand the content. https://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/03217...

    on “Ask HN: Best way to learn modern C++?” ↗
  • yosyp · Jul 25, 2018 · Recommends

    …community-verified book list available at StackOverflow" In other words, use the StackOverflow list to choose the right teaching material [2]. A Tour of C++ (Bjarne Stroustrup) has been a good refresher, with C++ Primer (Stanley Lippman, Josée Lajoie, and Barbara E. Moo) as the primary reference for further clarification. Also use GeeksForGeeks and LeetCode practice problems. [1] https://www.quora.com/Which-is-the-best-book-for-learning-c+... [2]…

    on “Modern C++ for C Programmers: part 5” ↗
  • SloopJon · Jul 29, 2019 · Recommends

    …are C++ Common Knowledge, Modern Effective C++, and Effective C++. Two of those predate C++11, but most of the advice is still applicable. As for introductory texts, I guess there's: Accelerated C++, C++ Primer, Discovering Modern C++, A Tour of C++, and of course C++ Crash Course (the book under discussion). I wouldn't get too hung up on "modern" C++. The vast majority of C++ programmers learned the old stuff…

    on “On Writing a C++ Book” ↗
  • brutus1213 · Dec 18, 2021 · Recommends

    …that are likely controversial. I preferred a different C book to K&R: "K. N. King. C Programming: A Modern Approach". Second, I could not grok Stroustrup's writing style. I preferred Stanley Lippman's C++ Primer. A new version of that has been around the corner for years .. current ETA is mid next year,

    on “Is K&R still a relevant read for a beginner? Is there a 'K&R' for C++?” ↗
  • neilv · Aug 13, 2023 · Recommends

    Stanley Lippman's "C++ Primer" 2e was the first book recommended by an expert, when I started learning C++. (At the time, this wasn't just another of today's programming language books, of learning a slightly different syntax for…

    on “Stan Lippman, early contributor to C++, died (2022)” ↗
  • matt_d · Apr 21, 2014 · Recommends

    0. Books--one of these: http://isocpp.org/get-started Personally, if you aren't new to programming per se, I'd go with "C++ Primer" by Lippman/Lajoie/Moo since it smoothly integrates modern C++11 throughout the entire text (instead of sticking it into a separate section, as some of the other books do). After that, "C++ Concurrency…

    on “The Convergence of Modern C++ on the Lisp Programming Style” ↗
  • jmdeldin · Sep 5, 2012 · Recommends

    …to study: It's a fairly easy language to read if you're familiar with other curly languages like Java or PHP, especially if you're ignoring most of the standard library and OOP. See if your library has C++ Primer (Lippman) or any O'Reilly C++ books, or pick up one from this list (http://stackoverflow.com/questions/388242/the-definitive-c-b...). Then just work through the first few chapters, solving each question/example.…

    on “Ask HN: Help me learn C++ in a week” ↗
  • gits1225 · Dec 14, 2012 · Recommends

    C++ Primer, 5th Edition, by Stanley B. Lippman, Josée LaJoie, Barbara E. Moo: https://www.informit.com/store/c-plus-plus-primer-9780321714... and http://isocpp.org/

    on “Stroustrup on next-gen C++: I didn't want to let go of my baby” ↗
  • zeugma · Dec 14, 2012 · Recommends

    C++ Primer was updated to C++11. http://www.amazon.com/Primer-5th-Edition-Stanley-Lippman/dp/... The C++ FAQ is really helpful but doesn't seem to be updated to C++11 http://www.parashift.com/c++-faq/ Fortunately…

    on “Stroustrup on next-gen C++: I didn't want to let go of my baby” ↗

Keyboard shortcuts

/
Focus search
j / k
Next / previous book
Enter
Open focused book
Esc
Close / go back
g h
Go to Home
g t
Go to Top all-time
g m
Go to Most recommended
g r
Go to Rising
g f
Go to For You
?
Show this help