Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void soldItemsList(multimap<string, Product*>& inventory, multiset <int> &soldItems)
  2. {
  3. multimap<string, Product*>::iterator it = inventory.begin();
  4. for(it = inventory.begin(); it != inventory.end(); ++it)
  5. {
  6. int soldCount = soldItems.count((*it->second).productCode_);
  7. cout<<"Product = " << (*it->second).name_ << ", Quantity Sold = " << soldCount << endl;
  8. }
  9. //Note This Code is Written By Marwan any one try to Leach it will get a serious consciousness and recantations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement