c++ map运用
来源:互联网 发布:jquery post 提交数据 编辑:程序博客网 时间:2024/05/22 01:39
map<int, string> map1;
map1.insert(pair<int, string>(1, "apple"));
map1.insert(pair<int, string>(2, "banana"));
map1.insert(pair<int, string>(3, "crpit"));
//cout << map1.size() << endl;
map<int, string>::iterator mit;
for (mit = map1.begin(); mit != map1.end(); mit++)
{
cout << mit->first << endl;
cout << mit->second << endl;
}
map1.insert(pair<int, string>(1, "apple"));
map1.insert(pair<int, string>(2, "banana"));
map1.insert(pair<int, string>(3, "crpit"));
//cout << map1.size() << endl;
map<int, string>::iterator mit;
for (mit = map1.begin(); mit != map1.end(); mit++)
{
cout << mit->first << endl;
cout << mit->second << endl;
}
- MAP的运用--zzuli1663
- Map的运用
- c++ map运用
- map容器运用 codeforces
- python map() ,reduce()运用
- 再谈map灵活运用
- 函数指针及map运用
- hdu 1004 map初运用。。。
- Map.Entry的相关运用
- Map的泛型运用
- STL之Map的运用
- hdu 4941map的运用
- Rxjava之map()的运用
- c++ map set综合运用
- UVA156 map与set运用
- hdu1219-map的简单运用
- HDOJ1251 统计难度 MAP运用
- c++map
- 用DOM4J来把XML文件转成JSON对象
- std::stringstream 取代 sprintf
- java 插入数据 hbase
- UVa 993: Product of digits
- prufer编码
- c++ map运用
- JAVA反射机制
- Qt学习之路_4(Qt UDP的初步使用)
- 网银新一代液晶按键USBkey安全分析
- 配置vim在源码中F4/自动添加作者信息
- hdu4630&多校3之1010
- hdu 4622(后缀自动机|后缀数组)
- 缓存设置
- MySQL Order By Rand()效率