Accelerated C++中文版 - Andrew Koenig, Barbara E.Moo

Accelerated C++中文版

Andrew Koenig, Barbara E.Moo

出版时间

2003-12-01

ISBN

9787508318196

评分

★★★★★
书籍介绍
《Accelerated C++中文版》给人的印象会如此深刻呢?这是因为:   ●它一开始就向读者教导那些最有用的概念,而不是那些简单的注释 读者很快就能够以此开始编程   ●它描述的是现实中的问题和解决方案,而不是单纯的语言特性 读者不但学习到了这些特性,而且还知道如何把它们应用到程序中去   ●它涵盖的范围同时包括了语言本身和标准库 读者可以从一开始就使用标准库来编写自己的程序   作者通过他们在美国斯坦福大学的教学经验证明了这种方法的有效性—在那里,学生们在他们的第一堂课中就学习到了如何编写真实的程序。   不管你是一个渴望开始学习C++编程的新手,还是一个已经使用C++多年并对它有了很深了解的老手,作者们独特的教学方法和经验都使得《Accelerated C++中文版》应该成为你书架中不可缺少的一个补充。
AI导读
核心看点
  • 从实用概念入手,快速编写真实程序
  • 结合语言特性与标准库,避免低效学习
  • 斯坦福教学经验验证,独特的教学方法
适合谁读
  • 渴望快速上手C++编程的新手入门者
  • 希望摆脱泥沼、走上C++正途的学习者
  • 对C++有了解但想优化编程习惯的老手
读前提醒
  • 无基础者初读可能吃力,需坚持练习
  • 建议配合TCPL等经典书籍共同研读
  • 注意书中部分翻译晦涩及已知勘误
读者共识
  • 被公认为C++最佳入门书籍之一
  • 例子现代化且实用,非枯燥语法堆砌
  • 虽非学习终点,但作为起点堪称经典

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

精彩摘录
  • "The int type is sufficient for rows because the number of rows depends only on the value of pad, which we control. Every C++ implementation is required to allow every int variable to take on values up to at least 32767, which is plenty. Nevertheless, whenever we define a variable that contains the s"
  • "C++ offers a way of saying that a particular name should always be interpreted as coming from a particular namespace. For example, by writing"
  • "we can say that we intend to use the name cout to mean std::cout exclusively, and that we do not intend to define anything named cout ourselves. Once we have done so, we can say cout instead of std::cout."
  • "Logically enough, such a declaration is called a using-declaration. The name that it mentions behaves similarly to other names. For example, if a using-declaration appears within braces, the name that it defines has its given meaning from where it is defined to the closing brace."
  • "By the same token, we do not bother to give an initial value to x, because the first thing we do with it is read into it, thereby obliterating any value we might have given it."
  • "Our goal is to write the final grade with three significant digits, which we do by using setprecision. Like endl, setprecision is a manipulator. It manipulates the stream by causing subsequent output on that stream to appear with the given number of significant digits. By writing setprecision(3), we"
  • "It is usually not worth the bother to use const references for parameters of simple built-in types, such as int or double. Such small objects are usually fast enough to copy that there's little, if any, overhead in passing them by value."
  • "Whenever we write a try statement, we must think carefully about side effects and when they occur. We must assume that anything between try and catch might throw an exception. If it does so, then any computation that would have been executed after the exception is skipped. What is important to reali"
下载
收藏