C++
jsa158
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《Google C++ 编程风格指南》对于头文件的包含顺序
《Google C++ 编程风格指南》对于头文件的包含顺序C system files.C++ system files.Other libraries' .h files.Your project's .h files.The preferred ordering reduces hiddendependencies. We want every header file to be com原创 2016-08-28 20:49:35 · 956 阅读 · 0 评论 -
打印宏
#define __PRINT_MACRO(x) #x#define PRINT_MACRO(x) #x"="__PRINT_MACRO(x)#define MA 3#pragma message(PRINT_MACRO(MA))原创 2016-08-28 21:22:40 · 570 阅读 · 0 评论 -
C++ 中explicit
关键字explicit可以禁止“单参数构造函数”被用于自动类型转换 class MyExample { explicit MyExample(int size); }; 没有explicit的话MyExample test= 80;能编译通过 而有explicit则不能,必需MyExample test(80);原创 2016-11-05 10:00:03 · 315 阅读 · 0 评论
分享