个人编写的小例子,没有注释,刚毕业时作为技术调研随手编写,仅供参考:

 #include<iostream>
#include<map>
#include<vector> using namespace std; struct date_s
{
long id;
string obj_type;
string obj_name;
};
typedef vector<date_s> S_vector;
int main(int argc,char ** argv)
{
int table_no;
vector<date_s> v_data;
map<int,S_vector> m;
map<int,S_vector>::iterator it_m; date_s d1,d2,d3;
d1.id = ;
d1.obj_name = "lijin";
d1.obj_type = "man"; d2.id = ;
d2.obj_name = "duanxiang";
d2.obj_type = "man"; d3.id = ;
d3.obj_name = "yuandong";
d3.obj_type = "man"; v_data.push_back(d1);
v_data.push_back(d2);
v_data.push_back(d3);
m[] = v_data;
S_vector tmp; it_m = m.begin();
tmp = it_m->second; cout<<it_m->second.front().id<<endl; for(;it_m != m.end();it_m++)
{
// cout<<it_m->first<<":"<<it_m->second.id<<" "<<it_m->second.obj_name<<endl; } return ;
}

最新文章

  1. SharePoint Online 申请试用链接地址
  2. java web开发小细节
  3. 基础调试命令 - wt (watch and trace)
  4. php面向对象常见的专业术语
  5. Outer Join Query Over Dblink Can Fail With ORA-904 (Doc ID 730256.1)
  6. pku 1182(种类并查集)
  7. zabbix接口调用注意事项--Python
  8. WPF之鼠标滑动切换图片
  9. (3/18)重学Standford_iOS7开发_Objective-C_课程笔记
  10. 全栈project师?给把瑞士军刀你去砍鬼子好不好!?
  11. Linux根目录详解-转自鸟哥的私房菜
  12. 【leetcode78】Single Number II
  13. configparser模块--配置文件
  14. linux cron计划任务、chkconfig 命令、systemd命令、unit 相关、target 相关
  15. windows下通过VNC图形化访问Ubuntu桌面环境
  16. 由Windows开发平台向Linux平台转移的一些想法
  17. Linux操作系统(二)
  18. Qt Multimedia Backends(多媒体后端)翻译
  19. 字符串数组是可以保存并输出null。只不过不好动态指定长度
  20. 移植MonkeyRunner的图片对照和获取子图功能的实现-UiAutomator/Robotium篇

热门文章

  1. python多线程同步
  2. qsort的几种用法
  3. OGG常见问题处理
  4. ref 关键字out关键字
  5. RTP InitializeComponent() 报错
  6. 【.NetRemoting-2】2015.09.17
  7. 【Remoting-5代码实现】
  8. 图的深度优先遍历的实现 c/c++ DFS
  9. C语言-getopt函数
  10. 3D模型制作