Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include "arvoreb.h"
  2.  
  3. int main(){
  4. int i;
  5. int random;
  6. Arvore* a = criar();
  7. for(i = 0; i < 100; i++){
  8. a = inserir(a, rand()%1000);
  9. }
  10. imprimir(a, 0);
  11.  
  12.  
  13. for(i = 0; i < 1000; i++){
  14. random = rand()%1000;
  15. printf("Chamando excluir para %d.\n", random);
  16. a = excluir(a, random);
  17. imprimir(a, 0);
  18. }
  19. liberarArvore(a);
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement