MAP用法

1. 初始化 map<int,int> 变量名 map<int,int>stu

2. 遍历 可用迭代器遍历 还可以用 for(auto &a:stu)

               cout<<a.fitst(设立一个stu的迭代器a)

posted @ 2021-05-13 19:06  旅玖旅玖  阅读(42)  评论(0编辑  收藏  举报