C++ std::map用法简介

#include "map" //引入头文件 初始化:c++ std::map <int, std::string> _map1; //初始化 //c++11中引入的,能够直接在初始化时赋值 std::map <int, std::string> _map = { {0,"11"}, {2,"22"}, {3,"33"}, }; 插入:函数 // 若是已经存在键值2
相关文章
相关标签/搜索