Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void soldItemsList(multimap<string, Product*>& inventory, multiset <int> &soldItems)
- {
- multimap<string, Product*>::iterator it = inventory.begin();
- for(it = inventory.begin(); it != inventory.end(); ++it)
- {
- int soldCount = soldItems.count((*it->second).productCode_);
- cout<<"Product = " << (*it->second).name_ << ", Quantity Sold = " << soldCount << endl;
- }
- //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