Guest User

Untitled

a guest
Jun 2nd, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ArvBinPesq<Loja>arvloja;
  2.  
  3. void RedeDistribuicao::mostraLojasDecrescente()
  4. {
  5. int tam=edf.comprimento();
  6.  
  7. for(int i=1;i<tam+1;i++)
  8. {
  9. Edificio *e;
  10. Loja *l;
  11. listaLoja.encontra(i,l);
  12. edf.encontra(i,e);
  13.  
  14.  
  15. if(typeid(*e)==typeid(Loja))
  16. {
  17. l=dynamic_cast<Loja*>(e);
  18. arvloja.juntarno(*l);
  19.  
  20. }
  21.  
  22.  
  23. }
  24. arvloja.Decrescente();
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment