![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Effective C++笔记
sicofield
这个作者很懒,什么都没留下…
展开
-
<<Effective C++>>笔记1
Chapter 1 Item 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 · 537 阅读 · 0 评论 -
<<Effective C++>>笔记4
Chapter 4 Designs and Declarations Item 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 · 432 阅读 · 0 评论 -
<<Effective C++>>笔记3
Chapter 3 ResourceManagement Item 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 · 446 阅读 · 0 评论 -
<<Effecitve C++>>笔记2
Chapter 2 Item 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 · 416 阅读 · 0 评论 -
<<Effective C++>>笔记5
Chapter 5: Implementation Item 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 · 566 阅读 · 0 评论