- 4
- 0
- 约6.29千字
- 约 30页
- 2016-08-23 发布于河南
- 举报
Chapter11 reference and copy_constructor
Chapter 11 11:references and the copy- constructor review Inline function Preprocessor pitfalls Inline function Inlines inside classes Names control Namespace static content References Copy-constructor References in C++ int a=47,b=33; int p=a; p=100; P=b;//illegal References Define: A reference () is like a constant pointer that is automatically dereferenced(解除). It is usually used for function argument lists and function return values. References There are certain rules when using references: 1.A reference must be initialized when it is created. (Pointers can be initialized at any ti
原创力文档

文档评论(0)