一種好記的方法,根據內容進行劃分。
根據內容細分為:
基本的數據類型關鍵字: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, volatile
引用:https://tieba.baidu.com/p/1967754662