#include
#include
#include
using namespace std;
int main()
{
///1. 初始化
multimap mapStudent;
multimap::iterator iter, beg, end;
///2. 添加元素
///multimap不支持下标操作
mapStudent.insert(pair(0, "student_one_1"));
mapStudent.insert(pair(0, "student_one_2"));///一对多
mapStudent.insert(pair(0, "student_one_3"));///一对多
mapStudent.insert(pair(1, "student_two"));
mapStudent.insert(pair(5, "Fear Kubrick"));
mapStudent.insert(pair(2, "Akemi Homura"));
mapStudent.insert(pair(-1, "Eren Jaeger"));
mapStudent.insert(pair(99, "lin"));
cout
1665320866
查看更多评论