I am trying to use sho to show the output of another function.The first function was used to do sorting, and returned a List.
now I want to make a function that uses show() to display the output.This is how I had tried it only to get an error.
Its to diplay the results of two the two sorted lists which used this function.
map Auctioneer::compareBidList(map& one, map& two) and
//**return Sorted.**
void show(const char *msg, map<int, Bid*>& Sorted) {
cout << msg << endl;
show(Sorted);
}
void compare(map<int, Bid*>& sellers, map<int, Bid*>& buyers) {
compare(sellers.begin(), sellers.end(),
buyers.begin(),buyers.end(),compareBidList); }
//my call in the main after declaration was as follows
map<int, Bid*> buyers, sellers;
Auctioneer auctioneer;
auctioneer.compare(sellers,buyers);
show(("Bids after sorting:", sellers,buyers);)