Advertisement
Riposati

Untitled

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