Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void RedeDistribuicao::mostraLojasDecrescente()
  2. {
  3.         int tam=edf.comprimento();
  4.        
  5.         for(int i=1;i<tam+1;i++)
  6.         {
  7.                         Edificio *e;   
  8.                         Loja *l;
  9.                         listaLoja.encontra(i,l);
  10.                         edf.encontra(i,e);
  11.  
  12.        
  13.                 if(typeid(*e)==typeid(Loja))
  14.                 {
  15.                         l=dynamic_cast<Loja*>(e);
  16.                         arvloja.juntarno(*l);
  17.                        
  18.                 }
  19.  
  20.  
  21.         }
  22.         arvloja.Decrescente();
  23.        
  24.        
  25. }