C++|STL學習筆記-map的基本操作(插入,刪除,遍歷,大到小輸出)【仿大佬寫法】

首先的代碼是插入,刪除,遍歷 運行截圖如下: 源碼如下: #include <map> #include <iostream> #include <algorithm> using namespace std; typedef pair<int, char> in_pair; typedef pair<map<int, char>::iterator, bool> in_pair_bool;
相關文章
相關標籤/搜索