- 有頭文件和實(shí)現(xiàn)文件航罗,class 結(jié)尾要帶分號(hào)
- 類表示本身帶關(guān)鍵字是 this
- lambda 表達(dá)式形式
[](int a, int b){
}
*智能指針 創(chuàng)建使用 make_shared 函數(shù)
shared_ptr<string> p = make_shared<string>("hi");
map
- 定義
map<string, int> word = { {"one":1}, {"two":2} };
- 插入
word.insert( {"word": 3});
word.insert( make_pair( "word": 5));
- 遍歷
for (auto w : word){
}