accessing values in a Map container, then try to match them
- by wilson88
Trying to compare the prices of the bids in the two maps.Sellers map and the buyers map.
Conditions for comparison.
1) One bid is A and the other is B
2) Price of B i greater than price of A.
I then copy the matched bids to a container called matched.I am not sure how to do the match of maps.
map<int, Bid*> bidtable/Before matching
map<int, Bid*> matched
map<int, Bid*> unmatched