C++ 關鍵字網絡
點擊下表以進入具體釋義ide
根據其內容可將其細分一下:
基本的數據類型關鍵字:void, int, char, float, double, bool
類型修飾關鍵字:long, short, singed, unsigned
布爾型字面值:true, false
很是重要的變量聲明修飾符:const, inline
存儲類別關鍵字:auto, static, extern, , register
控制結構關鍵字:for, while, if, else, do
switch語句關鍵字:switch, case, default
路徑跳轉關鍵字:break, continue, return, goto
動態建立變量關鍵字:new, delete
長度運算符:sizeof
複合類型關鍵字:class, struct, enum, union, typedef
與類成員相關關鍵字: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, volatileoop
在cena中time 是保留的 若是拿 time 作變量名 會 沒法編譯ui
——以上部份內容摘自網絡及Microsoft MSDNthis
——儘可能不要用英文全拼 能夠用縮寫 或者把首字母大寫 還有不少方法避免掉坑裏的 好比:用漢語拼音spa