Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~70 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for viswanathgs

I declared a map of the form [CODE]map<pair<int,int>,int> net;[/CODE] and inserted elements in the following way [CODE]net.insert( make_pair( make_pair(c1,c2 ),cost ));[/CODE] I could access the second element (cost, in the above code) using iter->second. But, I want to know how to access the two elements that form the first pair …

Member Avatar for programmersbook
0
70