The definitive C + + book guide and List

Source: Internet
Author: User
Tags coding standards

Learn the C + + book list

Turn from

Http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

Beginnerintroductory

If you were new to programming or if you had experience in other languages and is new to C + +, these books is highly reco Mmended.

  1. C + + Primer * (Stanley Lippman, Josée Lajoie, and Barbara E. Moo) (updated for c++11) Coming at 1k pages, This was a very thorough introduction into C + + that covers just on everything in the language in a very accessible form At and great detail. The fifth edition (released August) covers C++11. [Review]

  2. accelerated C + +   (Andrew Koenig and Barbara Moo) This basically covers the same ground as the C + + p Rimer , but does so on a fourth of its space. This is largely because it does does attempt to be a introduction to  programming , but an introduction to&nbs P C + +  for people who's ve previously programmed in some other language. It has a steeper learning curve, but, for those who can cope with this, it's a very compact introduction into the LANGUAG E. (historically, it broke new ground by being the first beginner's book using a modern approach at teaching the language. )  [review]

  3. Thinking in C + + (Bruce Eckel) volumes; is a tutorial style free set of intro level books. Downloads:vol 1, vol 2. Unfortunately they ' re marred by a number of trivial errors (e.g. maintaining that temporaries is automatically const ), WI Th no official errata list. A partial 3rd Party errata list was available at (http://www.computersciencelab.com/Eckel.htm), but it's apparently not Mai ntained.

  4. Programming:principles and Practice Using C + + (Bjarne Stroustrup) (updated for c++11/c++14) A introduction to Programming using C + + by the creator of the language. A Good read, that's assumes no previous programming experience, but isn't only for beginners.

* Not to is confused with C + + Primer Plus (Stephen Prata), with a significantly less favorable review.

Best practices
    1. effective C + + (Scott Meyers) This is 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 FR Om languages like Java. It presents ~50 easy-to-remember rules of thumb along with their rationale in a very accessible (and enjoyable) style. [Review]

    2. effective STL (Scott Meyers) This is the same to the part of the coming from the STL what effective C + + did to the LA Nguage as a whole:it presents rules of thumb along with their rationale. [Review]

Intermediate
  1. More effective C + + (Scott Meyers) Even more rules of thumb than effective C + +. Not as important as the ones in the first book, but still good to know.

  2. Exceptional C + + (Herb Sutter) Presented as a set of puzzles, this have one of the best and thorough discussions of the proper resource management and exc Eption Safety in C + + through Resource acquisition is initialization (RAII) in addition to in-depth coverage of a variety O f other topics including the Pimpl idiom, name lookup, good class design, and the C + + memory model. [Review]

  3. More exceptional C + + (Herb Sutter) Covers additional exception safety topics not covered inexceptional C + +, in addition to discussion of effective O Bject oriented Programming in C + + and correct use of the STL. [Review]

  4. Exceptional C + + Style (Herb Sutter) Discusses generic programming, optimization, and resource management; This book also have an excellent exposition of what to write modular code in C + + by using nonmember functions and the single Responsibility principle. [Review]

  5. C + + Coding standards (Herb 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 so can help you to write correct, understandable, and Efficient C + + code. [Review]

  6. C + + templates:the Complete Guide (David Vandevoorde and Nicolai M. josuttis) This was the book about templates as they existed before c++11. It covers everything from the very basics to some of the very advanced template metaprogramming and explains every detail of how templates work (both conceptually and in how they is implemented) and discusses many common pitfalls. Have excellent summaries of the one Definition Rule (ODR) and overload resolution in the appendices. Asecond edition is scheduled for 2015. [Review]

Advanced
  1. modern C + + Design (Andrei Alexandrescu) A groundbreaking book on the Advanced generic programming techniques. Introduces policy-based design, type lists, and fundamental generic programming idioms then explains how many useful desig n patterns (including small object allocators, functors, factories, visitors, and multimethods) can be implemented Efficie ntly, modularly, and cleanly using generic programming. [Review]

  2. C + + Template metaprogramming (David Abrahams and Aleksey Gurtovoy)

  3. C + + Concurrency in Action (Anthony Williams) A book covering c++11 concurrency support including the thread library, the Atomics library, the C + + memory model, locks a nd mutexes, as well as issues of designing and debugging multithreaded applications.

  4. Advanced C + + metaprogramming (Davide Di Gennaro) A pre-c++11 Manual of TMP techniques, focused more on practice than theory. There is a ton of snippets in this book, some of which is made obsolete by typetraits, but the techniques, is Nonethele SS, useful to know. If you can put up with the quirky formatting/editing, it's easier to read than Alexandrescu, and arguably, more rewarding . For more experienced developers, there are a good chance that's pick up something about a dark corner of C + + (a quirk That's usually only comes about through extensive experience.

Reference Style-all Levels
  1. A Tour of C + + (Bjarne Stroustrup) The "tour" was a quick (about chapters pages and tutorial) Overview of the standard C + + (language and standard Li Brary, and using c++11) at a moderately high level for people who already know C + + or at least is experienced PR Ogrammers. This book is a extended version of the material that constitutes chapters 2-5 of the C + + programming Language, 4th editio N.

  2. The C + + programming Language (Bjarne 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 alike it and covers just on everything from the CO Re language to the standard library, to programming paradigms to the language ' s philosophy. (thereby making the latest editions break the 1k page barrier.) [Review] The fourth edition (released on May) covers c++11.

  3. C + + standard Library Tutorial and Reference (Nicolai Josuttis) (updated for c++11) The introduction and reference for the C + + standard Library. The second edition (released on April 9) covers c++11. [Review]

  4. The C + + IO Streams and Locales (Angelika Langer and Klaus Kreft) There ' s very little to say on this book except that, if you want to know anything about streams and locales, then this Is the one where to find definitive answers. [Review]

C++11 References:

    1. The C + + standard (Incits/iso/iec 14882-2011) This, of course, was the final arbiter of all and is or isn t C + +. Be aware, however, that's it's intended purely as a reference for experienced users willing to devote considerable Time and effort to its understanding. As usual, the first release was quiteexpensive ($300+ US), but it had now been released in electronic form for $6 0US

    2. Overview of the New C + + (C++11/14) (PDF only) (Scott Meyers) (updated for c++1y/c++14) These is the presentation materials (slides and some lecture notes) of a three-day training course offered by Scott Meyer S, who's a highly respected author on C + +. Even though the list of items are short and the quality is high.

Classics/older

Note: Some information contained within these books may is up-to-date or no longer considered best practice.

  1. The Design and Evolution of C + + (Bjarne Stroustrup) If you want to know Why the language is the the-the-the-the-the-the-the-it is, here is where you find answers. This covers everything before the standardization of C + +.

  2. ruminations on C + + -(Andrew Koenig and Barbara Moo) [Review]

  3. Advanced C + + programming Styles and Idioms (James Coplien) A predecessor of the pattern movement, it describes many c++-specific "idioms". It ' s certainly a very good book and still worth a read if you can spare the time, but quite old and not up-to-date with CU Rrent C + +.

  4. Large scale C + + software Design (John Lakos) Lakos explains techniques to manage very big C + + software projects. Certainly a good read, if it is only is up to date. It was written long before c++98, and misses on many features (e.g. namespaces) important for large scale projects. If you need-to-work in a big C + + software project, you might want to read it, although-need-take-more than a grain of salt with it. The first volume of a new edition is expected in 2015.

  5. Inside the C + + Object Model (Stanley Lippman) If you want to know how virtual member functions is commonly implemented and how base objects is commonly laid out in me Mory in a multi-inheritance scenario, and "all" this affects performance, the "where you'll find thorough discussio NS of such topics.

The definitive C + + book guide and List

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.