Riposati

Untitled

Dec 1st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1.  // pra no com dois filhos
  2.         else if(raiz->esq!=NULL && raiz->dir!=NULL){
  3.  
  4.             Arvore *t = raiz->dir;
  5.  
  6.             while(t->esq!=NULL){
  7.                 t = t->esq;
  8.             }
  9.  
  10.             raiz->chave = t->chave;
  11.             t->chave = chave;
  12.             raiz->dir = deleta(raiz->dir,chave);
  13.         }
  14.     }
Add Comment
Please, Sign In to add comment