首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > More Effective C++后记及目录
【标  题】:More Effective C++后记及目录
【关键字】:More,Effective,C++
【来  源】:http://blog.csdn.net/hanyu1980/archive/2006/07/24/970778.aspx

More Effective C++后记及目录

       读这本书其实还是花了一点时间的,其中的一些条款的内涵及外延非常丰富。我觉得这是很用心去看的一本书,但在看书过程中,还是出现了浮躁的现象。实际上留给我看书的时间是有点不足,所以又想快些看完。事情总是两难的。
       我接下来买了《Effective C++》的第三版,我想这可能是我认真读的最后一本C++读物了,再往后要涉猎的C++的书籍已经不多,充其量是把《C++编程思想》的第二卷看完,我还剩下后面几章了。
       希望以后经常能够有条件看书,有条件写读书笔记。
 
目录

基础议题(Basics                                        
条款1:仔细区别 pointers  references                        
Distinguish between pointers and references
条款2:最好使用 C++ 转型操作符                            
Prefer C++-style casts
条款3:绝对不要以polymorphically(多态)方式来处理数组    
Never treat arrays polymorphically
条款4:非必要不提供 default constructor                        
Avoid gratuitous default constructors
操作符(Operators                                        
条款5:对定制的型别转换函数保持警觉                        
Be wary of user-defined conversion functions
条款6:区别 increment/decrement 操作符的
 
前置(prefix)和后置(postfix)型式                        
Distinguish between prefix and postfix forms of increment 
 and decrement operators
条款7:千万不要重载 &&, ||,  , 操作符                    
Never overload &&, ||, or ,
条款8:了解各种不同意义的 new  delete                
Understand the different meanings of new and delete

异常(Exceptions                                        
条款9:利用 destructors 避免泄漏资源                        
Use destructors to prevent resource leaks
条款10:在 constructors 内阻止资源泄漏(resource leaks        
Prevent resource leaks in constructors
条款11:禁止异常(exceptions)流出 destructors 之外            
Prevent exceptions from leaving destructors
条款12:了解「掷出一个 exception」与「传递一个参数」
 
或「调用一个虚函数」之间的差异                    
Understand how throwing an exception differs from 
 passing a parameter or calling a virtual function
条款13:以 by reference 方式捕捉 exceptions                    
Catch exceptions by reference
条款14:明智运用 exception specifications                    
Use exception specifications judiciously
条款15:了解异常处理(exception handling)的成本            
Understand the costs of exception handling

效率(Efficiency                                        
条款16:谨记 80-20 法则                                   
Remember the 80-20 rule
条款17:考虑使用 lazy evaluation                            
Consider using lazy evaluation
条款18:分期摊还预期的计算成本                            
Amortize the cost of expected computations
条款19:了解暂时对象的来源                                
Understand the origin of temporary objects
条款20:协助完成「返回值优化(RVO)」                    
Facilitate the return value optimization
条款21:利用重载技术(overload)避免隐式型别转换            
Overload to avoid implicit type conversions
条款22:考虑以操作符复合型式(op=)取代其独身型式(op
Consider using op= instead of stand-alone op
条款23:考虑使用其它程序库                                
Consider alternative libraries
条款24:了解 virtual functionsmultiple inheritancevirtual base classes
 runtime type identification 
所需的成本                         
Understand the costs of virtual functions, multiple inheritance, 
 virtual base classes, and RTTI

技术(Techniques, Idioms, Pattern                         
条款25:将 constructor  non-member functions 虚化             
Virtualizing constructors and non-member functions
条款26:限制某个 class 所能产生的对象数量                 
Limiting the number of objects of a class
条款27:要求(或禁止)对象产生于 heap 之中                  
Requiring or prohibiting heap-based objects
条款28Smart Pointers(智能指针)                          
条款29Reference counting(引用计数)                      
条款30Proxy classes(替身类、代理类)                      
条款31:让函数根据一个以上的对象型别来决定如何虚化          
Making functions virtual with respect to more than one object
杂项讨论(Miscellany                                      
条款32:在未来时态下发展程序                              
Program in the future tense
条款33:将非尾端类(non-leaf classes)设计为
 
抽象类(abstract classes                                      
Make non-leaf classes abstract
条款34:如何在同一个程序中结合 C++  C                 
Understand how to combine C++ and C in the same program
条款35:让自己习惯于标准 C++ 语言                          
Familiarize yourself with the language standard

 
瘦身你的执行文件:【上一篇】
原滋原味的C界面程序:【下一篇】
【相关文章】
  • C++基础库javen 0.1 for win版发布
  • 读VC++内幕之体悟 - 08
  • JNI之C++调用Java类——java.lang.String
  • 在Visual C++中用ADO进行数据库编程
  • C++学习日志一
  • C++学习日志二
  • C++面试题集(最全的C\C++试题集和部分答案)
  • C++学习日志三
  • c++学习笔记(四)——类(2)
  • visual c++ 6.0中使用winpcap
  • 【随机文章】
  • Linux与硬盘分区[转]
  • 用脚本(JavaScript)去掉字符串的前后空格
  • MC里cmmodpkg的使用
  • [公告]访问量变大 速度变慢 服务器在购买
  • 国内CRM的趋势分析
  • VS 2005 SP1中HTML源码编辑的性能改进
  • Redhat系统提速
  • WAS服务器负载测试软件导读
  • 自定义SqlDataSource
  • 我要告诉测试新手的(转)---引以自戒!
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.