C++书籍指引

这篇博客提供了C++学习的全面指南,从适合初学者的《C++ Primer》到针对有经验程序员的《Modern C++ Design》,涵盖了C++的基础、最佳实践、并发编程和模板元编程等多个方面。推荐书籍包括Bjarne Stroustrup的经典作品和Scott Meyers的Effective系列,以及Herb Sutter的Exceptional C++系列。
摘要由CSDN通过智能技术生成

c++ faq - The Definitive C++ Book Guide and List - Stack Overflow

Beginner

Introductory, no previous programming experience

BookAuthor(s)Descriptionreview
C++ Primer*

* Not to be confused with C++ Primer Plus (Stephen Prata), with a significantly less favorable review.
Stanley Lippman, Josée Lajoie, and Barbara E. Moo (updated for C++11)Coming at 1k pages, this is a very thorough introduction into C++ that covers just about everything in the language in a very accessible format and in great detail. The fifth edition (released August 16, 2012) covers C++11.[Review]
Programming: Principles and Practice Using C++Bjarne Stroustrup, 2nd Edition - May 25, 2014 (updated for C++11/C++14)An introduction to programming using C++ by the creator of the language. A good read, that assumes no previous programming experience, but is not only for beginners.

Introductory, with previous programming experience

BookAuthor(s)Descriptionreview
A Tour of C++Bjarne Stroustrup (2nd edition for C++17)The “tour” is a quick (about 180 pages and 14 chapters) tutorial overview of all of standard C++ (language and standard library, and using C++11) at a moderately high level for people who already know C++ or at least are experienced programmers. This book is an extended version of the material that constitutes Chapters 2-5 of The C++ Programming Language, 4th edition.
Accelerated C++Andrew Koenig and Barbara Moo, 1st Edition - August 24, 2000This basically covers the same ground as the C++ Primer, but does so in a quarter of its space. This is largely because it does not attempt to be an introduction to programming, but an introduction to C++ for people who've previously programmed in some other language. It has a steeper learning curve, but, for those who can cope with this, it is a very compact introduction to the language. (Historically, it broke new ground by being the first beginner's book to use a modern approach to teaching the language.) Despite this, the C++ it teaches is purely C++98.[Review]

Best practices

BookAuthor(s)Descriptionreview
Effective C++Scott Meyers, 3rd Edition - May 22, 2005This was written with the aim of being the best second book C++ programmers should read, and it succeeded. Earlier editions were aimed at programmers coming from C, the third edition changes this and targets programmers coming from languages like Java. It presents ~50 easy-to-remember rules of thumb along with their rationale in a very accessible (and enjoyable) style. For C++11 and C++14 the examples and a few issues are outdated and Effective Modern C++ should be preferred.[Review]
Effective Modern C++Scott MeyersThis book is aimed at C++ programmers making the transition from C++03 to C++11 and C++14. This book can be treated like a continuation and "correction" of some parts of the previous book - "Effective C++". They don't cover the same things, but keep similar item-based theme.[Review]
Effective STLScott MeyersThis aims to do the same to the part of the standard library coming from the STL what Effective C++ did to the language as a whole: It presents rules of thumb along with their rationale.

Intermediate

BookAuthor(s)Descriptionreview
More Effective C++Scott MeyersEven more rules of thumb than Effective C++. Not as important as the ones in the first book, but still good to know.
Exceptional C++Herb SutterPresented as a set of puzzles, this has one of the best and thorough discussions of the proper resource management and exception safety in C++ through Resource Acquisition is Initialization (RAII) in addition to in-depth coverage of a variety of other topics including the pimpl idiom, name lookup, good class design, and the C++ memory model.[Review]
More Exceptional C++Herb SutterCovers additional exception safety topics not covered in Exceptional C++, in addition to discussion of effective object-oriented programming in C++ and correct use of the STL.[Review]
Exceptional C++ StyleHerb SutterDiscusses generic programming, optimization, and resource management; this book also has an excellent exposition of how to write modular code in C++ by using non-member functions and the single responsibility principle.[Review]
C++ Coding StandardsHerb Sutter and Andrei Alexandrescu“Coding standards” here doesn't mean “how many spaces should I indent my code?” This book contains 101 best practices, idioms, and common pitfalls that can help you to write correct, understandable, and efficient C++ code.[Review]
C++ Templates: The Complete GuideDavid Vandevoorde and Nicolai M. JosuttisThis is the book about templates as they existed before C++11. It covers everything from the very basics to some of the most advanced template metaprogramming and explains every detail of how templates work (both conceptually and at how they are implemented) and discusses many common pitfalls. Has excellent summaries of the One Definition Rule (ODR) and overload resolution in the appendices. A second edition covering C++11, C++14 and C++17 has been already published.[Review]
C++ 17 - The Complete GuideNicolai M. JosuttisThis book describes all the new features introduced in the C++17 Standard covering everything from the simple ones like 'Inline Variables', 'constexpr if' all the way up to 'Polymorphic Memory Resources' and 'New and Delete with over aligned Data'.[Review]
C++ 20 - The Complete GuideNicolai M. JosuttisThis book presents all the new language and library features of C++20. It covers the motivation and context of each new feature with examples and background information. The focus is on how these features impact day-to-day programming, what it means to combine them, and how to benefit from C++20 in practice. (Note that this book is published step-by-step.)
C++ in ActionBartosz MilewskiThis book explains C++ and its features by building an application from ground up.[Review]
Functional Programming in C++Ivan ČukićThis book introduces functional programming techniques to modern C++ (C++11 and later). A very nice read for those who want to apply functional programming paradigms to C++.

Advanced

BookAuthor(s)Descriptionreview
Modern C++ DesignAndrei AlexandrescuA groundbreaking book on advanced generic programming techniques. Introduces policy-based design, type lists, and fundamental generic programming idioms then explains how many useful design patterns (including small object allocators, functors, factories, visitors, and multi-methods) can be implemented efficiently, modularly, and cleanly using generic programming.[Review]
C++ Template MetaprogrammingDavid Abrahams and Aleksey Gurtovoy
C++ Concurrency In ActionAnthony WilliamsA book covering C++11 concurrency support including the thread library, the atomics library, the C++ memory model, locks and mutexes, as well as issues of designing and debugging multithreaded applications. A second edition covering C++14 and C++17 has already been published.[Review]
Advanced C++ MetaprogrammingDavide Di GennaroA pre-C++11 manual of TMP techniques, focused more on practice than theory. There are a ton of snippets in this book, some of which are made obsolete by type traits, but the techniques, are nonetheless useful to know. If you can put up with the quirky formatting/editing, it is easier to read than Alexandrescu, and arguably, more rewarding. For more experienced developers, there is a good chance that you may pick up something about a dark corner of C++ (a quirk) that usually only comes about through extensive experience.
Large Scale C++ volume I, Process and architecture (2020)John LakosPart one of a three-part series extending the older book 'Large Scale C++ Design'. Lakos explains battle-tested techniques to manage very big C++ software projects. If you work in a big C++ software project this is a great read, detailing the relationship between physical and logical structure, strategies for components, and their reuse.[Review]

Reference Style - All Levels

BookAuthor(s)Descriptionreview
The C++ Programming LanguageBjarne Stroustrup (updated for C++11)The classic introduction to C++ by its creator. Written to parallel the classic K&R, this indeed reads very much like it and covers just about everything from the core language to the standard library, to programming paradigms to the language's philosophy.[Review]
Note: All releases of the C++ standard are tracked in the question "Where do I find the current C or C++ standard documents?".
C++ Standard Library Tutorial and ReferenceNicolai Josuttis (updated for C++11)The introduction and reference for the C++ Standard Library. The second edition (released on April 9, 2012) covers C++11.[Review]
The C++ IO Streams and LocalesAngelika Langer and Klaus KreftThere's very little to say about this book except that if you want to know anything about streams and locales, then this is the one place to find definitive answers.[Review]
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值