发布网友
共1个回答
热心网友
map 里面有一个insert函数 可以调用,用for或者while()循环来插入,遍历请使用迭代器
示例:
map<int ,string> a;
a.insert(1, "student_one"));