Thinking in C++

Bruce Eckel

出版社

Prentice Hall

出版时间

2000-03-25

ISBN

9780139798092

评分

★★★★★
书籍介绍
In the first edition of Thinking in C++, Bruce Eckel synthesized years of C++ teaching and programming experience into a beautifully structured course in making the most of the language. It became an instant classic, winning the 1995 Software Development Jolt Cola Award for best book of the year. Now, Eckel has thoroughly rewritten Thinking in C++ to reflect the final ANSI/ISO C++ standard. Every page has been revisited and rethought, with many new examples and exercises -- all designed to help you understand C++ "down to the bare metal," so you can solve virtually any problem. Eckel starts with a detailed look at objects, showing how C++ programs can be constructed from off-the-shelf object libraries. This edition includes a new, chapter-length overview of the C features that are used in C++ -- plus a new CD-ROM containing an outstanding C seminar that covers all the foundations developers need before they can truly take advantage of C++. Eckel then walks through initialization and cleanup; function overloading and default arguments; constants; inline functions; name control; references and the copy constructor; operator overloading; and more. There are chapters on dynamic object creation; inheritance and composition; polymorphism and virtual functions, and templates. (Bonus coverage of string, templates, and the Standard Template Library, can be found at Eckel's web site.) Every chapter contains many modular, to-the-point examples, plus exercises based on Eckel's extensive experience teaching C++ seminars. Put simply, Eckel has made an outstanding book on C++ even better.
AI导读
核心看点
  • 深入解析C++底层机制,直达金属层面
  • 从对象构建入手,系统梳理面向对象思想
  • 涵盖ANSI/ISO标准,含大量实例与练习
适合谁读
  • 希望深入理解C++底层原理的进阶开发者
  • 具备C基础,想系统学习面向对象编程者
  • 追求代码质量,愿啃英文原版的技术极客
读前提醒
  • 强烈建议阅读英文原版,中文译本质量堪忧
  • 内容详实但略显啰嗦,需耐心跟随作者思路
  • 部分代码示例在特定编译器下可能无法编译
读者共识
  • 公认的经典C++入门佳作,获Jolt Cola大奖
  • 对OOP核心脉络梳理清晰,优于部分竞品
  • 翻译口碑较差,但原文深度与结构备受推崇

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • ""you shouldn't use a default argument as a flag upon which to conditionallly execute code. you should instead break the function into two or more overloaded functions""
  • "在C中,我们常常发现能使程序通过编译,然后我们必须再花力气使它工作。"
  • "与刚才忽略不满足判定函数的元素不同..."
  • "But, and this is an important point, as soon as you decide to write your own copy-constructor and assignment operator, the compiler assumes that you know what you’re doing and does not automatically call the base-class versions, as it does in the synthesized functions. If you want the base class ver"
  • "$ g++ c12TypeConversation.cpp c12TypeConversation.cpp: 在函数‘int main()’中: c12TypeConversation.cpp:48:20: 错误: 对‘Person::Person(Person)’的调用没有匹配的函数 c12TypeConversation.cpp:48:20: 附注: 备选是: c12TypeConversation.cpp:19:5: 附注: Person::Person(const char*) c12TypeConversation.cpp:19:5: 附注: no known conversion "
  • "construction Jack copy construction Jack Jack free Jack construction MARY MARY free MARY free Jack"
  • "像任何人类语言一样,C++提供了一种表达思想的方法。如果这种表达方法是成功的,那么当问题变得更大和更复杂时,该方法将会明显的表现出比其他方法更容易和更灵活的优点。"
用户评论
时间跨度长5个月。第一遍精读完成。真真是极好的C++入门书。详略得当,C++03版的重要概念和用法全部都有涉猎,前后呼应,循序渐进,最后一章对模板的介绍不仅是对第一卷涉及知识点的总结,也是对第二卷STL的一个不错的入门。
未读完,放弃。
学习C++的另一种可能性。从与C和其他语言比较的角度来讲C++,把C++的特点讲解得相当出色。
Bruce 大师的著作,非常不错的C++入门书籍
刚开始读。前言就娓娓道来如沐春风很有见解.几乎每一页他都在解答我学C语言中遇到的疑惑。K&R简洁易懂循序渐进,这本细致入微循循善诱。每看几页都要赞叹,这书写得真他娘的好.一年后再浏览本书,原先没看懂的copy constructor 现在看懂了,以及其他...
虽然学C++有一段时间了,但还是学到不少新东西
should be a nice one
總的來說還不錯 cover了很多細節 尤其是appendix裡面列的guideline 不過感覺書中的example設計的不好 內容組織也不盡如人意
收藏