C++ 关键字网络
点击下表以进入具体释义ide
根据其内容可将其细分一下:
基本的数据类型关键字:void, int, char, float, double, bool
类型修饰关键字:long, short, singed, unsigned
布尔型字面值:true, false
很是重要的变量声明修饰符:const, inline
存储类别关键字:auto, static, extern, , register
控制结构关键字:for, while, if, else, do
switch语句关键字:switch, case, default
路径跳转关键字:break, continue, return, goto
动态建立变量关键字:new, delete
长度运算符:sizeof
复合类型关键字:class, struct, enum, union, typedef
与类成员相关关键字:this, friend, virtual, mutable, explicit, operator
派生类继承方式:private, protected, public
模板:template, typename
命名空间:namespace, using
异常处理:catch, throw, try,
各类操做符的替代名:and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq
其余不经常使用的:asm, export, typeid, volatileoop
在cena中time 是保留的 若是拿 time 作变量名 会 没法编译ui
——以上部份内容摘自网络及Microsoft MSDNthis
——尽可能不要用英文全拼 能够用缩写 或者把首字母大写 还有不少方法避免掉坑里的 好比:用汉语拼音spa