首页 > 58必威网站

c++中关键字的分类

来源:
时间:2024-08-17 13:15:31
热度:

c++中关键字的分类【专家解说】:C++中共有74个关键字 保留字。
and and_eq asm auto
bitand bitor bool break
case catch

【专家解说】:C++中共有74个关键字 保留字。 and and_eq asm auto bitand bitor bool break case catch char class compl const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new not not_eq operator or or_eq private protected public register reinterpret_cast return short signed struct sizeof static static_cast throw switch template this typeid true try typedef using typename union unsigned virtual void volatile wchar_t while xor xor_eq 根据其内容可将其细分一下: 基本的数据类型关键字: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, volatile
Baidu
map