multimap的存储顺序研究
来源:互联网 发布:网络摄像头带宽计算 编辑:程序博客网 时间:2024/04/30 08:18
#include <iostream>
#include <map>
using namespace std;
int main(int argc, char* argv[])
{
std::multimap<int,int> record;
record.insert(make_pair(5,2));
record.insert(make_pair(2,1));
record.insert(make_pair(10,3));
std::multimap<int,int>::iterator it = record.begin() ;
int a = it->second;
it++;
int b = it->second;
it++;
int c = it->second;
cout<<a<<endl<<b<<endl<<c;
system("pause");
return 0;
}
存储顺序为int型的值的大小。
输出为结果为
1
2
3
0 0
- multimap的存储顺序研究
- 栈的顺序存储
- 栈的顺序存储
- 栈的顺序存储
- 队列的顺序存储
- 栈的顺序存储
- 串的顺序存储
- 串的顺序存储
- 顺序存储的栈
- 顺序存储的合并
- 队列的顺序存储
- 数组的顺序存储
- 队列的顺序存储
- 栈的顺序存储
- 队列的顺序存储
- 队列的顺序存储
- 栈的顺序存储
- 栈的顺序存储
- OpenCV中的HOG+SVM物体分类
- android Camera拍照 及 MediaRecorder录像 预览图像差90度
- 玩转无线路由之DD-WRT基础扫盲
- poj 3107 Godfather(树形DP,点的个数较多, 删点使得剩余部分结点最多的最小值)
- 创业公司如何实施敏捷开发
- multimap的存储顺序研究
- MySQL问题解决:-bash:mysql:command not found
- MyEclipse + Maven开发Web工程的详细配置过程
- 【学习】MFC 如何处理发送给线程的消息
- 有趣的问题:C的表达式x == x,何时为假?!
- palindrome
- c++ cout 格式输出
- 关于局域网、广域网、C/S、P2P编程
- NFC (一)概述