C++
weixin_42115831
这个作者很懒,什么都没留下…
展开
-
C++ typename的起源与用法
不多说,看大神的链接吧,学习学习转载 2019-11-26 20:10:55 · 80 阅读 · 0 评论 -
添加非工作区头文件
Ctrl+Shift+P 。选择c_cpp_properties.json,includePath和browse中都需要添加需要的头文件路径;{ "configurations": [ { "name": "MinGW", "intelliSenseMode": "gcc-x64", ...转载 2019-11-26 13:32:42 · 123 阅读 · 0 评论 -
快速理解const限定符
const定义常量经过const修饰的变量,其值将固定不变。const int i = 0;//i将被视为常量0,在程序编译时,凡事遇到i的地方,都替换成0.const可以修饰指针、引用等变量,使其变为常量。顶层const和底层const例子说明:int i = 0,j = 0,k = 0;const int *a = &i;//底层constint *...原创 2019-11-19 15:11:09 · 103 阅读 · 0 评论 -
#if...#endif用法总结
c++预处理器1. #表示预处理符号2. #if…#endif是C++种的条件编译预处理命令有两种格式:1:#ifdef 标示符 程序段1 #else 程序段2 #endif 表示:如果标示符已经被#define命令定义过,则编译程序段1,否则编译程序段22:#if 表达式 程序段1 ...原创 2019-11-18 13:30:12 · 9406 阅读 · 1 评论