• more effective c++ 35个改善编程与设计的有效方 中文版 编程语言 (美)梅耶 新华正版
21年品牌 40万+商家 超1.5亿件商品

more effective c++ 35个改善编程与设计的有效方 中文版 编程语言 (美)梅耶 新华正版

编程语言 新华书店全新正版书籍 支持7天无理由

45.9 5.2折 89 全新

库存97件

湖南长沙
认证卖家担保交易快速发货售后保障

作者(美)梅耶

出版社电子工业出版社

ISBN9787121125706

出版时间2011-01

版次1

装帧平装

开本16开

页数336页

字数500千字

定价89元

货号xhwx_1202155053

上书时间2023-08-29

语欣书店

三年老店
已实名 已认证 进店 收藏店铺

   商品详情   

品相描述:全新
正版特价新书
商品描述
目录:

译序(侯捷)ix

导读(introduction)001

基础议题(basics)009

条款1:仔细区别 pointers 和 references009

distinguish between pointers and references.

条款2:好使用 c++ 转型作符012

prefer c++-style casts.

条款3:不要以多态(polymorphically)方式处理数组016

never treat arrays polymorphically.

条款4:非必要不提供 default constructor019

avoid gratuitous default constructors.

作符(operators)024

条款5:对定制的“类型转换函数”保持警觉024

be wary of user-defined conversion functions.

条款6:区别 increment/decrement 作符的前置(prefix)和后置(tfix)形式031

distinguish between prefix and tfix forms of increment and decrement operators.

条款7:千万不要重载&&,||和, 作符035

never overload &&, ||, or ,.

条款8:了解各种不同意义的 new 和 delete038

understand the different meanings of new and delete 

异常(exceptions)044

条款9:利用 destructors 避泄漏资源045

use destructors to prevent resource leaks.

条款10:在 constructors 内阻止资源泄漏(resource leak)050

prevent resource leaks in constructors.

条款11:禁止异常(exceptions)流出 destructors 之外058

prevent exceptions from leaving destructors.

条款12:了解“抛出一个 exception”与“传递一个参数”或“调用一个虚函数”之间的差异061

understand how throwing an exception differs from passing a parameter or calling a virtual function.

条款13:以 by reference 方式捕捉 exceptions068

catch exceptions by reference.

条款14:明智运用 exception specifications072

use exception specifications judiciously.

条款15:了解异常处理(exception handling)的成本078

understand the costs of exception handling.

效率(efficiency)081

条款16:谨记 80-20 则082

remember the 80-20 rule.

条款17:虑使用 lazy evaluation(缓式评估)085

consider using lazy evaluation.

条款18:分期摊还预期的计算成本093

amortize the cost of expected putations.

条款19:了解临时对象的来源098

understand the origin of temporary objects.

条款20:协助完成“返回值优化(rvo)”101

facilitate the return value optimization.

条款21:利用重载技术(overload)避隐式类型转换(implict type conversions)105

overload to avoid implicit type conversions.

条款22:虑以作符复合形式(op=)取代其独身形式(op)107

consider using op= instead of stand-alone op.

条款23:虑使用其他程序库110

consider alternative libraries.

条款24:了解 virtual functions、multiple inheritance、virtual base classes、runtime type identification 的成本113

understand the costs of virtual functions, multiple inheritance, virtual base classes, and rtti.

技术(techniques, idioms, patterns)123

条款25:将 constructor 和 non-member functions 虚化123

virtualizing constructors and non-member functions.

条款26:某个 class 所能产生的对象数量130

limiting the number of objects of a class.

条款27:要求(或禁止)对象产生于 heap 之中145

requiring or prohibiting heap-based objects.

条款28:smart pointers(智能指针)159

条款29:reference counting(引用计数)183

条款30:proxy classes(替身类、代理类)213

条款31:让函数根据一个以上的对象类型来决定如何虚化228

making functions virtual with respect to more than one object.

杂项讨论(miscellany)252

条款32:在未来时态下发展程序252

program in the future tense.

条款33:将非尾端类(non-leaf classes)设计为抽象类(abstract classes)258

make non-leaf classes abstract.

条款34:如何在同一个程序中结合 c++ 和 c270

understand how to bine c++ and c in the same program.

条款35:让自己惯于标准 c++ 语言277

familiarize yourself with the language standard.

读物285

auto_ptr 实现代码291

索引(一)(general index)295

索引(二)(index of example classes,functions,and templtes)313

内容简介:

继effectivec之后,scottmeyers于1996推出这本“续集”。条款变得比较少,页数倒是多了一些,原因是这次选材比“集”更高阶,尤其是第5章。meyers将此章命名为技术(techniques),并明白告诉你,其中都是一些patterns,例如virtualconstructors,smartpointers,referencecounting,proxyclasses,doubledispatching这一章的每个条款篇幅都达15~30页之多,实在让人有“山重水复疑无路,柳暗花明又一村”之叹。虽然出版年代稍嫌久远,但本书并没有第2版,原因是当其出版之时(1996),cstandard已经几乎定案,本书即依当时的标准草案而写,其与现今的c标准规范几乎相同。而且可能变化的几个弹之处,meyers也都有所说明与提示。读者可以登录作者提供的,看看上下两集的勘误与讨论(数量之多,令人惊恐。幸好多是技术讨论或文字斟酌,并没有什么重大误失)。

—  没有更多了  —

以下为对购买帮助不大的评价

正版特价新书
此功能需要访问孔网APP才能使用
暂时不用
打开孔网APP