摘要: 1.inline内敛函数与#define infine可以实现类define的功能 并且可以按值传递,而#define是按表达式传递 2.引用 引用并不是一个对象,所以引用没有指针,并且引用在定义时就必须要初始化(static也是)。 返回引用和传递引用可以提高程序效率,因为没有不需要临时存储空间, 阅读全文
posted @ 2017-04-17 17:29 PyMCJ 阅读(95) 评论(0) 推荐(0) 编辑
摘要: int * const p; const int * const p; int const * const p; 这样的话,一共有六种,如下: ①const int p; ②const int* p; ③int const* p; ④int * const p; ⑤const int * const 阅读全文
posted @ 2017-04-17 15:37 PyMCJ 阅读(404) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/touzani/article/details/1637776 介绍命名空间; http://www.cnblogs.com/yc_sunniwell/archive/2010/07/14/1777431.html 详细介绍了extern和static的区别 阅读全文
posted @ 2017-04-17 15:23 PyMCJ 阅读(408) 评论(0) 推荐(0) 编辑