Advertisement
Guest User

Untitled

a guest
May 31st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. algoritmo exibe_clubes(literal compt)
  2. inicio
  3.  
  4. ListaLSE lista;
  5. NodoAB no,pai,paux;
  6. no <- novo NodoAB();
  7. lista <- nova ListaLSE();
  8.  
  9. se(vazia()) então
  10.  
  11. então raiz <- no;
  12.  
  13. senão inicio
  14.  
  15. pai <- nulo;
  16. paux <- raiz;
  17.  
  18. fim
  19. enquanto(paux != nulo) faça
  20. inicio
  21. pai <- paux;
  22.  
  23. se(paux.get_compt() = compt)
  24. então incio
  25. lista.incluir_final(no);
  26.  
  27. fim
  28. fim
  29. lista.exibir();
  30.  
  31. fim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement