首页 > 编程语言 >c++ book (IS2120@BG57IV3)

c++ book (IS2120@BG57IV3)

时间:2023-06-09 17:04:21浏览次数:44  
标签:11 BG57IV3 Review programming C++ very book c++


//z 2013-04-15 13:20:59 [email protected] .K[T424,L5832,R188,V6844]
ReferenceStyle - All Levels

  1. The C++ Programming Language (Bjarne Stroustrup) (soon to be 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 about everything from the core 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 (to be released in 2013) will cover C++11.
  2. 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, 2012) covers C++11. [Review]
  3. The C++ IO Streams and Locales (Angelika Langer and Klaus Kreft) There'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]

C++ 11 References:

  1. The C++ Standard (INCITS/ISO/IEC 14882-2011) This, of course, is the final arbiter of all that is or isn't C++. Be aware, however, that it is intended purely as a reference for experienced users willing to devote considerable time and effort to its understanding. As usual, the first release was quite expensive ($300+ US), but it has now been released in electronic form for $30US -- probably the least expensive of the reference books listed here.
  2. Overview of the New C++ (C++11) By Scott Meyers, who's a highly respected author on C++. Even though the list of items is short, the quality is high.


Beginner

Introductory

If you are new to programming or ifyou have experience in other languages and are new to C++, these books arehighly recommended.

  1. C++ Primer† (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]
  2. 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 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 into the language. (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) Two volumes; second is more about standard library, but still very good
  4. Programming: Principles and Practice Using C++ (Bjarne Stroustrup) 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.

† Not to be confused with C++ Primer Plus (Stephen Prata), with a significantlyless favorable review.

Bestpractices

  1. Effective C++ (Scott Meyers) This 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. [Review]
  2. Effective STL (Scott Meyers) This 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. [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 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]
  3. More Exceptional C++ (Herb Sutter) Covers 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]
  4. Exceptional C++ Style (Herb Sutter) Discusses generic programming, optimization, and resource management; this book also has an excellent exposition of how 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 that 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 is the book about C++ templates. 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. [Review]


AboveIntermediate

  1. Modern C++ Design (Andrei Alexandrescu) A 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 multimethods) can be implemented efficiently, 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 and 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 are a ton of snippets in this book, some of which are made obsolete by typetraits, 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.


Classics/ Older

Note: Some information contained within these books may not be upto 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 way it is, this book 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 current 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 only was 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 you need to take more than a grain of salt with it. There's been the rumor that Lakos is writing an up-to-date edition of the book for years.
  5. Inside the C++ Object Model (Stanley Lippman) If you want to know how virtual member functions are commonly implemented and how base objects are commonly laid out in memory in a multi-inheritance scenario, and how all this affects performance, this is where you will find thorough discussions of such topics.



//z 2012-12-11 15:35:23 [email protected][T5,L152,R3,V56]


有几本书相应出或将出新版本了:


1. book


The C++ Standard Library: A Tutorial and Reference (2nd Edition)

[Hardcover] (4.9.2012)


The C++ Programming Language, 4th Edition

[Paperback](4.13.2013)


C++ Primer (5th Edition)

[Paperback] (8.16.2012)


Programming: Principles and Practice Using C++[Paperback](明年出第二版)

Foundation of Algorithms in C++11, Volume 1: Using and Extending C++11, Boost and Beyond. Now in the final stage of production.

C++11 Algorithms: Using and Extending C++11, Boost and Beyond. Approximately 50% complete.



//z 2012-12-11 15:35:23 [email protected][T5,L152,R3,V56]


1.1 clean code


TheArt of Readable Code


CleanCode


ImplementationPatterns



//z 2012-12-08 17:18:25 [email protected]


2. 编译器

intel c++
clang
gnu c++
Oracle Solaris Studio C++ Compiler
visual c++ express 2012

标签:11,BG57IV3,Review,programming,C++,very,book,c++
From: https://blog.51cto.com/u_16156420/6449431

相关文章

  • fgetws 讀取Unicode文件 (zz.IS2120@BG57IV3)
    //z2012-11-2218:48:[email protected][T4,L45,R0,V24]fgetws讀取Unicode文件fgetws_fgetts读取中文乱码unicode双字节多字节最近要讀取一個unicode文件做額外處理,但是透過fgetws去讀取檔案,利用WriteConsole顯示在console畫面......
  • Handling Invalid Characters in an XML String (zz.IS2120.BG57IV3)
    Thereare5predefinedentityreferencesinXML://z2013-08-2018:03:[email protected][T191,L2147,R75,V2925]<<lessthan>>greaterthan&amp;&ampersand &apos;'apostrophe""quotationmark//z2014-04-1017:47......
  • c++中的位操作
    c++中的位操作使用or设置位 number|=1<<x;将设置位x清除位使用位操作&清除位。 number&=~(1<<x);这将清除位x。转换位XOR操作(^) number^=1<<x;检查位 bit=number&(1<<x);......
  • 在 c++ 中删除一个 NULL pointer (空指针)
    @is21201.在c++中删除一个NULLpointer(空指针)是安全的2.标准中相关内容如下:"Ineitheralternative,ifthevalueoftheoperandofdeleteisthenullpointertheoperationhasnoeffect."3.一个有用的宏@is2120#definemy_delete(x){deletex;x=NULL;} 4......
  • c++ 书籍推荐
    对于所有人都适用-参考手册   TheC++ProgrammingLanguage(BjarneStroustrup)   C++StandardLibraryTutorialandReference(NicolaiJosuttis)   TheC++IOStreamsandLocales(AngelikaLangerandKlausKreft)入门级   C++Primer†(Stanle......
  • google c++ 风格指南
    这是google给c++开源项目提出的规范。不得不说,里面有很多知识点,能让c++编写者避开某些坑位。但同时它非常的学术,看的有点恶心。翻译后网址:https://www.bookstack.cn/read/google-cpp-style/1.md原文网址:https://google.github.io/styleguide/cppguide.html#Use_of_constexpr......
  • C# 调用C++库引发不得不说的事
    第三方引用库使用方式有两种1.动态库(DLL),2.静态库(Lib)区别:        静态库:我们的程序在链接时会把用到的静态库全部都链接进去,形成一个exe,这也导致我们的exe很大(程序是先编译,再链接库,最后形成exe)        动态库:是在不再把整个库都链接进去,而是程序用到哪个库,......
  • 定义 C++ 对象
     类提供了对象的蓝图,所以基本上,对象是根据类来创建的。声明类的对象,就像声明基本类型的变量一样。下面的语句声明了类Box的两个对象:BoxBox1;//声明Box1,类型为BoxBoxBox2;//声明Box2,类型为Box对象Box1和Box2都有它们各自的数据成员。https://www.lekaowang.c......
  • C++ 类定义
     定义一个类需要使用关键字 class,然后指定类的名称,并类的主体是包含在一对花括号中,主体包含类的成员变量和成员函数。定义一个类,本质上是定义一个数据类型的蓝图,它定义了类的对象包括了什么,以及可以在这个对象上执行哪些操作。https://www.lekaowang.com/cjjjs/zsu/fob/......
  • C++ 继承
     面向对象程序设计中最重要的一个概念是继承。继承允许我们依据另一个类来定义一个类,这使得创建和维护一个应用程序变得更容易。这样做,也达到了重用代码功能和提高执行效率的效果。当创建一个类时,您不需要重新编写新的数据成员和成员函数,只需指定新建的类继承了一个已有的类的......