Advertisement
matheus__serpa

q1

Jun 30th, 2020
1,372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. void percorre(Nodo **a){
  2.     Elementos e;
  3.     Nodo *n;
  4.     if(*a!= NULL){
  5.         cria(&e);
  6.         insere(&e, *a);
  7.         while(vazia(&e) == 0){
  8.             no = remove(&e);
  9.             printf("%s ", n->a->n_c);
  10.             if(n->a->e != NULL)
  11.                 insere(&e, n->a->e);
  12.             if(n->a->d != NULL)
  13.                 insere(&e, n->a->d);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement