and and_eq asm auto
bitand bitor bool break
case catch">

首頁 > 專家說

c++中關(guān)鍵字的分類

來源:新能源網(wǎng)
時間:2024-08-17 13:15:31
熱度:

c++中關(guān)鍵字的分類【專家解說】:C++中共有74個關(guān)鍵字 保留字。
and and_eq asm auto
bitand bitor bool break
case catch

【專家解說】:C++中共有74個關(guān)鍵字 保留字。 and and_eq asm auto bitand bitor bool break case catch char class compl const const_cast continue default delete do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new not not_eq operator or or_eq private protected public register reinterpret_cast return short signed struct sizeof static static_cast throw switch template this typeid true try typedef using typename union unsigned virtual void volatile wchar_t while xor xor_eq 根據(jù)其內(nèi)容可將其細分一下: 基本的數(shù)據(jù)類型關(guān)鍵字:void, int, char, float, double, bool 類型修飾關(guān)鍵字:long, short, singed, unsigned 布爾型字面值:true, false 非常重要的變量聲明修飾符:const, inline 存儲類別關(guān)鍵字:auto, static, extern, , register 控制結(jié)構(gòu)關(guān)鍵字:for, while, if, else, do switch語句關(guān)鍵字:switch, case, default 路徑跳轉(zhuǎn)關(guān)鍵字:break, continue, return, goto 動態(tài)創(chuàng)建變量關(guān)鍵字:new, delete 長度運算符:sizeof 復(fù)合類型關(guān)鍵字:class, struct, enum, union, typedef 與類成員相關(guān)關(guān)鍵字:this, friend, virtual, mutable, explicit, operator 派生類繼承方式:private, protected, public 模板:template, typename 命名空間:namespace, using 異常處理:catch, throw, try, 各種操作符的替代名:and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq 其他不常用的:asm, export, typeid, volatile