您好,欢迎来到聚文网。 登录 免费注册
Effective C++(中文版改善程序与设计的55个具体做法第3版)/传世经典书丛

Effective C++(中文版改善程序与设计的55个具体做法第3版)/传世经典书丛

  • 字数: 380
  • 出版社: 电子工业
  • 作者: (美)梅耶|责编:周筠|译者:侯捷
  • 商品条码: 9787121123320
  • 版次: 1
  • 开本: 16开
  • 页数: 297
  • 出版年份: 2011
  • 印次: 35
定价:¥89 销售价:登录后查看价格  ¥{{selectedSku?.salePrice}} 
库存: {{selectedSku?.stock}} 库存充足
{{item.title}}:
{{its.name}}
精选
内容简介
有人说C++程序员可以 分为两类,读过Effective C++的和没读过的。世界顶 级C++大师Scott Meyers成 名之作的第三版的确当得起 这样的评价。当您读过这本 书之后,就获得了迅速提升 自己C++功力的一个契机。 在国际上,本书所引起 的反响,波及整个计算机技 术的出版领域,余音至今未 绝。几乎在所有C++书籍的 推荐名单上,本书都会位于 前三名。作者高超的技术把 握力、独特的视角、诙谐轻 松的写作风格、独具匠心的 内容组织,都受到极大的推 崇和仿效。这种奇特的现象 ,只能解释为人们对这本书 衷心的赞美和推崇。 这本书不是读完一遍就 可以束之高阁的快餐读物, 也不是用以解决手边问题的 参考手册,而是需要您去反 复阅读体会的,C++是真正 程序员的语言,背后有着精 深的思想与无以伦比的表达 能力,这使得它具有类似宗 教般的魅力。希望这本书能 够帮您跨越C++的重重险阻 ,领略高处才有的壮美风光 ,做一个成功而快乐的C++ 程序员。
目录
译序 中英简繁术语对照 目录 序言 致谢 导读 1.让自己习惯C++ Accustoming Yourself to C++ 条款01:视C++ 为一个语言联邦 View C++ as a federation of languages 条款02:尽量以const, enum, inline替换#define Prefer consts,enums, and inlines to #defines 条款03:尽可能使用const Use const whenever possible 条款04:确定对象被使用前已先被初始化 Make sure that objects are initialized before they''''re used 2.构造/析构/赋值运算 Constructors, Destructors, and Assignment Operators 条款05:了解C++ 默默编写并调用哪些函数 Know what functions C++ silently writes and calls 条款06:若不想使用编译器自动生成的函数,就该明确拒绝 Explicitly disallow the use of compiler-generated functions you do not want 条款07:为多态基类声明virtual析构函数 Declare destructors virtual in polymorphic base classes 条款08:别让异常逃离析构函数 Prevent exceptions from leaving destructors 条款09:绝不在构造和析构过程中调用virtual函数 Never call virtual functions during construction or destruction 条款10:令operator=返回一个reference to *this Have assignment operators return a reference to *this 条款11:在operator=中处理“自我赋值” Handle assignment to self in operator 条款12:复制对象时勿忘其每一个成分 Copy all parts of an object 3.资源管理 Resource Management 条款13:以对象管理资源 Use objects to manage resources 条款14:在资源管理类中小心copying行为 Think carefully about copying behavior in resource-managing classes 条款15:在资源管理类中提供对原始资源的访问 Provide access to raw resources in resource-managing classes 条款16:成对使用new和delete时要采取相同形式 Use the same form in corresponding uses of new and delete 条款17:以独立语句将newed对象置入智能指针 Store newed objects in smart pointers in standalone statements 4.设计与声明 Designs and Declarations 条款18:让接口容易被正确使用,不易被误用 Make interfaces easy to use correctly and hard to use incorrectly

蜀ICP备2024047804号

Copyright 版权所有 © jvwen.com 聚文网