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
上一篇:奧運火炬是什么材料制作的?
-
dota 求熊貓酒仙大招詳解2024-08-17
-
關(guān)于太陽能電池板給18650鋰電池DIY充電的制作詳解 注意:只是一個移動式太陽能充電器,非移動電源DIY2024-08-17
-
聯(lián)想p70軟件一打開就顯示強制關(guān)閉,或內(nèi)存不足,可是手機內(nèi)存還剩余60M,求高手詳解,非常感謝2024-08-17
-
二次能源屬于可再生能源還是不可再生的能源,他們之間的關(guān)系是怎么樣的?請詳解??!2024-08-17
-
燃氣報警器的安裝方法詳解2024-08-17
-
廊坊管道局和中國石油天然氣股份有限公司管道廊坊分公司是一回事嘛?求詳解!2024-08-17
-
誰有這題生物題第四小題答案詳解??急求!2024-08-17
-
神偷4第四章煤氣管道戰(zhàn)利品獲得方法詳解2024-08-17
-
生物選擇題,請生物專家給出詳解啊2024-08-17
-
同步發(fā)電機和異步發(fā)電機的區(qū)別(詳解)2024-08-17
-
請詳解六道之三惡道 或介紹相關(guān)典籍2024-08-17
-
核裂變和核碰撞產(chǎn)生的結(jié)果求詳解?2024-08-17
-
去離子水設(shè)備的優(yōu)點和用途,求詳解。2024-08-17
-
成熟的天然氣開采、脫硫、凈化、液化技術(shù)??詳解2024-08-17
-
全民小鎮(zhèn)杰瑞陳B階海神號部落帳篷任務(wù)花費和流程獎勵詳解2024-08-17