map最基本操作
2024-09-04 12:03:28
#include<iostream>
#include<map>
using namespace std;
int main()
{
/*map<int,char> mp;
map<int,char>::iterator it;
mp[2]='L';
mp[1]='A';
mp[3]='Z';
for(it=mp.begin();it!=mp.end();it++)
{
cout<<it->first<<" "<<it->second<<endl;
}*/
/*map<int,string> mp1;
map<int,string>::iterator it;
mp1[2]="lz";
mp1[1]="df";
mp1[3]="kl";
for(it=mp1.begin();it!=mp1.end();it++)
{
cout<<it->first<<" "<<it->second<<endl;
}*/
}
最新文章
- Elasticsearch mapping
- Love
- 在Spring4中使用通用Mapper
- web.config的数据库连接字符串进行加密
- 第十八章 数据访问(In .net4.5) 之 I/O操作
- HTML css面试题
- JS获取整个HTML网页代码 - Android 集美软件园 - 博客频道 - CSDN.NET
- Java学习笔记——Linux下安装配置MySQL
- Python s12 Day3 笔记及作业
- 利用python进行数据加载和存储
- 【安卓进阶】LiveData
- SpringMVC框架出现 405 request method post not supported 的解决方法
- 浅谈一类无关序列有前缀和性质的统计问题的离线解法 BZOJ3626
- NoSQL&;Redis
- PostgreSQL的下载安装
- python进阶:Python进程、线程、队列、生产者/消费者模式、协程
- mac开机启动apache、memcached与mysql
- ISE约束文件*.ucf的写法
- maven(14)-nexus仓库基本用法
- [ASP.NET Core] 建置x86版本 (workaround)