C++ 关键字
下表列出了 C++ 中的保留字。這些保留字不能作為常量名、變量名或其他標(biāo)識符名稱。
| asm | else | new | this |
| auto | enum | operator | throw |
| bool | explicit | private | true |
| break | export | protected | try |
| case | extern | public | typedef |
| catch | false | register | typeid |
| char | float | reinterpret_cast | typename |
| class | for | return | union |
| const | friend | short | unsigned |
| const_cast | goto | signed | using |
| continue | if | sizeof | virtual |
| default | inline | static | void |
| delete | int | static_cast | volatile |
| do | long | struct | wchar_t |
| double | mutable | switch | while |
| dynamic_cast | namespace | template |
總結(jié)
- 上一篇: C++ 的关键字(保留字)完整介绍
- 下一篇: C++ 中的类型限定符 类型限定符提供了