Accelerated C++中文版通过示例进行编程实践

(美)Andrew Koenig, Barbara E. Moo

出版时间

2012-06-30

ISBN

9787030341877

评分

★★★★★
书籍介绍
这本书最鲜明的主张,是让你尽早地“像写真程序一样”学习C++:从第0章起就使用标准库的高级抽象,用实际要解决的问题(统计学生成绩、给姓名加边框)驱动语法,而不是先把一堆语言细节背下来。读者普遍反馈,这种“by example”的路子让他们读完对概念的记忆远比啃大部头牢固,也补上了《C++ Primer》讲得细致却容易遗忘的缺口。但它也因此两极分化:习惯了循序渐进的人会抱怨它知识跳跃、不成体系,有经验者则嫌它铺垫过多。它适合愿意接受“先跑起来、再回头补原理”的读者——就像学开车,这本书教你怎么开,而不是拆解发动机。
作者简介
"Andrew Koenig和Barbara E. Moo堪称C++研究领域的“第一神仙眷侣”,他们不光有着多年的C++开发、研究和教学经验,而且亲身参与了C++的演化和变革,是对C++的变化和发展起到重要影响的人。 Andrew Koenig,AT&T大规模程序研发部(前贝尔实验室)成员,同时也是C++标准委员会项目编辑。他有30多年编程经验,15年C++开发经验,已发表150多篇与C++有关的论文,应邀在世界各地多次演讲。曾编著C Traps and Pitfalls一书,并与妻子合著Ruminations on C++。 Barbara E. Moo,独立咨询顾问,在软件领域从业20多年。在AT&T工作的近15年中,参与了第一个使用C++编写商业产品的开发项目,负责管理公司第一个C++编译器项目,并成功指导开发了AT&T中屡获殊荣的WorldNet Internet Service Business。曾参与编写Ruminations on C++一书,并在世界各地进行过多次演讲。"
AI导读
核心看点
  • 斯坦福经典教材,通过示例快速掌握C++编程实践
  • 从标准库高级抽象入手,由浅入深讲解核心概念
  • 涵盖容器、泛型算法及类设计,讲解精炼巧妙
读者共识
  • 公认的最佳C++入门书之一,比Primer更易懂
  • 通过实例教学,避免枯燥理论,实用性强
  • 部分读者认为知识体系跳跃,翻译有待改进
精彩摘录
  • "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"
目录
"第0章 开始1
0.1 注释1
0.2 #include指令2
0.3 主函数main2
0.4 花括号2

显示全部
用户评论
如果说学习语言跟学习开车是一样的话,那么这本书就是教你如何开车,而S神的书是教你车本身的原理
最佳
很不错的一本书, 先代码再讲概念, 重在用法. 虽然缺少深入, 本质的解读, 但是对一本这种厚度的书能做到这样已经很完美了.
C++入门经典,中文版太烂
又啰嗦讲的又不清楚的烂书
这本书真的太好了, 我也读过 <C++ primer> 这样的大部头, 而大部头的问题就是太细致了, 有些东西看过就忘了. 而这本书的精华就是 by example , 通过编写实际的程序来讲述一些概念. 同时这本书和现在很多 <xxx in action> 就是 example 的堆积不同, 书中的程序随着讲解的深入, 新概念的出现后也在不断的进化, 让我们不仅学到了新知识, 还知道知识的力量! 作为 C++ 学习的第一本书实在是太合适了, 唯一的遗憾就是比较古早, 所以没有 C++11 以后的内容了.
勉强读完了前13章,中文翻译真的不太好理解,有关句柄写的内容没太懂
书评写过啦~ww
下载
收藏