
Effective C++笔记
sicofield
这个作者很懒,什么都没留下…
展开
-
<<Effective C++>>笔记1
Chapter 1Item 1: Rules for effective C++ programming vary, depend on the part of C++ you are using.C++共分为四个部分:C、Object-Oriented C++、Template C++、STL Item 2: 1、For simple constants, prefer cons原创 2012-12-21 09:31:47 · 560 阅读 · 0 评论 -
<<Effective C++>>笔记4
Chapter 4 Designs and DeclarationsItem 18:1)Good interfaces are easy to usecorrectly and hard to use incorrectly. You should strive for thesecharacteristics in all your interfaces. 2)Ways to原创 2012-12-23 16:22:22 · 461 阅读 · 0 评论 -
<<Effective C++>>笔记3
Chapter 3 ResourceManagementItem 13: 1、To prevent resource leaks, use RAII objects(智能指针) that acquire resource in their constructors and release them in their destructors.当将delete语句写入某个函数的时候,因为可能在原创 2012-12-23 14:17:33 · 474 阅读 · 0 评论 -
<<Effecitve C++>>笔记2
Chapter 2Item 5: Compilers may implicitly generate a class’s default constructor, copy constructor, copyassignment operator, and destructor. Item 6:To disallow functionality automatically provid原创 2012-12-21 13:25:50 · 437 阅读 · 0 评论 -
<<Effective C++>>笔记5
Chapter 5: ImplementationItem 26:Postpone variable definition aslong as possible. Postponevariable definition as long as possible. It increases program clarity andimproves program efficiency原创 2013-01-07 10:59:10 · 597 阅读 · 0 评论