I have a map like this :
map<int,map<int,int> > m;
in this, I can insert value like a 2-D array. like this,
so, now i want to iterate all the values in a particluar row of map. for ex. if m is like this : m["user-id"]["movie-id"], then i want to iterate on all the values of a particular user-id. as a user-id has some movie-d associated with it in its row (if i consider it as 2-D matrix, although it is not one). Thanks in advance if you can help me. Actually, I wana see that to which movies , a particular user-id has give rating. like a person with user-id 346 has given rating to say movie-id 98, 76, 89, 90. so i wana calculate my answer as 4 as it has rated 4 movies. thanks.