关键字也称保留字,是预先定义好的标识符,有其特殊的含义。
| auto | break | case | char |
|---|---|---|---|
| const | continue | default | do |
| double | else | enum | extern |
| float | for | goto | if |
| int | long | register | return |
| short | signed | sizeof | static |
| struct | switch | typedef | union |
| unsigned | void | volatile | while |
基本上,C语言有的C++都包含了,下面看C++特有的。
| bool | catch | class | const_cast |
|---|---|---|---|
| delete | dynamic_cast | explicit | false |
| friend | inline | mutable | namespace |
| new | operator | private | protected |
| public | reinterpret_cast | static_cast | |
| template | this | throw | true |
| try | typeid | typename | using |
| virtual | wchar_t |
还有一些
asm cdecl far huge
interrupt near pascal export
except fastcall saveregs stdcall
seg syscall fortran thread