C++的关键字,知道的说一下 谢谢了

来源:百度知道 编辑:UC知道 时间:2024/05/22 17:33:44
auto register static extern char short int long new float double
struct breat else switch case enum delete typedef retrun union
const for viod default goto class signed unsigned continue sizeof
volatile if while do template

MSDN
C++ Keywords
Keywords are predefined reserved identifiers that have special meanings. They cannot be used as identifiers in your program. The following keywords are reserved for C++:

Syntax

keyword: one of

asm1 auto bad_cast bad_typeid
bool break case catch
char class const const_cast
continue default delete do
double dynamic_cast else enum
except explicit extern false
finally float for friend
goto if inline int
long mutable namespace new
operator private protected public
register reinterpret_cast return short
signed sizeof static static_cast
struct switch template this
throw true try type_info
typedef typeid typename union
unsigned using virtual void
volatile while

1 Reserved for compatibility with other C++ implementations, but not implemented. Use __asm.

Microsoft Specific

In Microsoft C++, identif