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: 14  |  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. template<class T>
  2. void ArvBin<T>::Decrescente() const
  3. {
  4.         cout << "\nLista Loja inserida na arvore por ordem decrescente\n" ;
  5.         Decrescente(this->raiz);  
  6. }
  7.  
  8. template <class T>
  9. void ArvBin<T>::Decrescente(Nodo<T>* rz) const
  10. {
  11.         if (rz!=NULL)
  12.         {
  13.                 Decrescente(rz->dir);
  14.                 cout << rz->inf << " " ;
  15.                 Decrescente(rz->esq);
  16.         }
  17.         return;
  18. }