1.內(nèi)置(built in)
2.文字常量是不可尋址的(nonaddressable)
3.c++關(guān)鍵字: asm, auto, bool, breek, case, catch, char, class, 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, operator
private, protected, public, register, renterpret_cast, return, short, signed, sizeof, static, static_cast, struct, switch,
template, union, unsigned, using, virtual, void, volatile, wchar_t, while
4.全局域(global scope)
5.replace用法: replace(string.begin(), string.end(), 'a', 'b'); //把string里的a替換成b
6.魔數(shù)(magic number) --重要性在上下文中沒有體現(xiàn)出來
7.c++不支持在枚舉成員之間的前后移動
8.vector類為內(nèi)置的數(shù)組提供了一種代替表示
9.vector有兩種不同形式: 數(shù)組習(xí)慣; stl習(xí)慣
10.size()查詢vector大小
11.empty()測試vector是否為空
12.push_back()在vector后面插入一個元素
13.volatile --編譯器執(zhí)行的某些例行優(yōu)化行為不能應(yīng)用在已指定為volatile的對象上
14.pair類型 --把相同類型或不同類型的兩個值關(guān)聯(lián)起來
頭文件<utility>
pair<string, string> author("abc", "def");
pair的成員訪問符 first second