How to produce output using show function.
        Posted  
        
            by wilson88
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by wilson88
        
        
        
        Published on 2010-05-16T23:45:16Z
        Indexed on 
            2010/05/16
            23:50 UTC
        
        
        Read the original article
        Hit count: 372
        
c++
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);)
© Stack Overflow or respective owner