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;
相关文章
相关标签/搜索