ke*************@yahoo.com wrote:
i have this
map<string,vector<int>>mv=x.begin();
Good morning to you!
i'd like to do this
map<string,vector<int>::iterator>itv=..something-i-don't-know-... to
access elements of vector using iterator
but this is impossible.
It's impossible to help you if you don't provide any info about the
actual problem. You can actually create such a map.
second,
i've tried this
map<string,vector<int>>mv=x.begin();
vector<int>::iterator it=mv->second->begin();
error is: no base pointer for second
the error message is you friend!
"error is: no base pointer for second"
1) look at the line in which there is the error;
2) look at the "second" token
3) why is it looking to a base pointer? because there is mv->second
4) mhy don't find it? because mv is not a pointer
5) infer the solution: mv.second
6) be happy
Regards,
Zeppe
thanks a lot, Keith