The definitive C + + book guide and List

Source: Internet
Author: User
Tags coding standards

    • 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.
Introductory, with previous programming experience
  • 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]

  • A Tour of C + +   (Bjarne Stroustrup) The "tour" was A quick (about pages and chapters) tutorial ov Erview of all of the standard C + + (language and library,  and using c++11 ) at a moderately high Level for people who already know C + + or at least is experienced programmers. This book is a extended version of the material that constitutes chapters 2-5 of the C + + programming Language, 4th editio N.

  • accelerated C + +   (Andrew Koenig and Barbara Moo) This basically covers the same ground as The c++ Primer , 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 to use a modern approach at teaching the language .) [Review]

  • 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 3rdparty errata list is available in (http://www.computersciencelab.com/Eckel.htm), but it's apparently not main tained.

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

Best practices
  • 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. For c++11 and c++14 the examples and a few issues is outdated and effective modern C + + should be preferred. [Review]

  • Effective modern C + + (Scott Meyers) This is basically the new version of effective C + +, aimed at C + + programmers Making the transition from c++03 to c++11 and c++14.

  • 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
  • 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.

  • 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]

  • 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]

  • 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]

  • 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]

  • 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. A Second edition is scheduled for 2016. [Review]

Advanced
  • 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]

  • C + + Template metaprogramming (David Abrahams and Aleksey Gurtovoy)

  • 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.

  • 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
    • the C + + programming Language   (Bjarne Stroustrup) ( updated for c++11 ) the Clas SIC 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. [review]

    • 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]

    • the C + + IO Streams and Loc Ales   (Angelika Langer and Klaus Kreft) there ' s very little to say on this book except so, if you want to kn ow anything about streams and locales, then this is the one place to find definitive Answers. [review]

C++11/14 References:

  • 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 wasquite expensive ($300+ US), but it had now been released in electronic form for $6 0US.

  • The C++14 standard was available, but seemingly not on an economical form--directly from the Isoit costs 198 Swiss Francs ( About US). For most people, the final draft before standardization are more than adequate (and free). Many would prefer an even newer draft, documenting new features that is likely to being included in c++17.

  • 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 M Eyers, who's a highly respected author on C + +. Even though the list of items are short and the quality is high.

  • Cppcoreguidelines (C++11/14/17 evolving) (Markdown only) (Bjarne Straustrup, Herb Sutter) This document was a set of guidelines for using C + + well. The aim of this document was to help people to use modern C + + effectively. By "Modern C + +" we mean c++11 and c++14 (and soon c++17). In the other words, what would do you like your code to look like in 5 years ' time, given so can start now? In ten years ' time? The guidelines is focused on relatively higher-level issues, such as interfaces, resource management, memory management, and concurrency. Such rules affect application architecture and library design. Following the rules would leads to code this is statically type safe, have no resource leaks, and catches many more programmi Ng logic errors than is common in code today. And it'll run fast-you can afford to does things right.

Classics/older

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

  • 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 standardizationof C + +.

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

  • 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 might still is worth a read if you can spare the time, but quite old and not up-to-dat E with current C + +.

  • 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.

  • 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

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.