开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
gcc
问题(Question):
map<int,vector<data> >中要如何取用资料?
data是一个struct
map<int,vector<data> > user;
data temp;
user[].push_back(temp)
因为自己在GOOGLE中找到的都是如何置入资料
而我自己已经先用上面的方式将资料建立
但是我不知道要如何用iterator印出他?
map<int,vector<data> >::iterator i;
使用(*i).first可以正确取用
但是(*i).second之后就不知道要如何写才能知道里面的资料?
谢谢高手解答