C++中stl的map

总结: 在map中插入数据有三种方法: 1.用insert插入pair数据: mapstudent.insert(pair<int,string>(1,"studentone")); 2.用insert插入value_type数据:mapstudent.insert(map<int,string>::value_type(1,"student_one")); 3.用类似数组的方式插入数据:maps
相关文章
相关标签/搜索