当前位置:首页 C++ > 正文

C++ 语言的所有关键字

作者:野牛程序员:2024-07-17 08:15:47 C++阅读 2305
C++ 语言的所有关键字

以下是 C++ 语言的所有关键字。这些关键字在编译器中有特殊含义,不能用作标识符。

alignas      alignof        and          and_eq       asm
auto         bitand        bitor        bool         break
case         catch         char         char8_t      char16_t
char32_t     class         compl        concept      const
consteval    constexpr     const_cast   continue     co_await
co_return    co_yield      decltype     default      delete
do           double        dynamic_cast else         enum
explicit     export        extern       false        float
for          friend        goto         if           inline
int          long          mutable      namespace    new
noexcept     not           not_eq       nullptr      operator
or           or_eq         private      protected    public
register     reinterpret_cast           requires     return
short        signed        sizeof       static       static_assert
static_cast  struct        switch       template     this
thread_local throw         true         try          typedef
typeid       typename      union        unsigned     using
virtual      void          volatile     wchar_t      while
xor          xor_eq

这些关键字覆盖了基本的数据类型、控制结构、类型转换、运算符、类和对象的定义与操作等方面的功能。在使用这些关键字时,需要遵守各自的语法和用法规定。

野牛程序员教少儿编程与信息学奥赛-微信|电话:15892516892
野牛程序员教少儿编程与信息学竞赛-微信|电话:15892516892
  • C++
  • 最新推荐

    热门点击