> 文章列表 > C++关键字

C++关键字

C++关键字

目录

一,C关键字

二,常用关键字

1,布尔:bool、true、false

2,命名空间:using、namespace

3,内存:new、delete

4,类:class、this、public、private、protected、friend、virtual

5,异常:try、catch、throw

6,类型:typeid、typename、static_cast、const_castdynamic_cast、reinterpret_cast

7,泛型:template、operator

三,非常用关键字

1,逻辑运算:and、and_eq、or、or_eq、not、not_eq

2,位运算:xor、xor_eq、bitor、bitand、compl

3,其他:export、explicit、asm、mutable、wchat_t


一,C关键字

C关键字

下文全部是列举C++里面C没有的关键字。

二,常用关键字

1,布尔:bool、true、false

2,命名空间:using、namespace

3,内存:new、delete

4,类:class、this、public、private、protected、friend、virtual

5,异常:try、catch、throw

6,类型:typeid、typename、static_cast、const_castdynamic_cast、reinterpret_cast

类型转换

7,泛型:template、operator

三,非常用关键字

1,逻辑运算:and、and_eq、or、or_eq、not、not_eq

2,位运算:xor、xor_eq、bitor、bitand、compl

xor是异或,bitor是按位或,bitand是按位与,compl是按位非

3,其他:export、explicit、asm、mutable、wchat_t