Guest User

Untitled

a guest
Dec 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. begin
  2. CrearPila(meaux);
  3. AbrirPila(meaux);
  4. if (PilaVacia(me))
  5. then
  6. ShowMessage('La Pila se Encuentra Vacia')
  7. else
  8. begin
  9. While not (PilaVacia(me)) do
  10. begin
  11. Tope(me,rd);
  12. lst1.Items.Add('Clave: ' + rd.Clave);
  13.  
  14. if PilaVacia(meaux)
  15. then
  16. Apilar(meaux,Rd);
  17. Desapilar(me);
  18. end;
  19. end;
  20.  
  21. While (PilaVacia(me)) do
  22. begin
  23. Tope(meaux,regaux);
  24. Apilar(me,regaux);
  25. // Desapilar(meaux);
  26. end;
  27.  
  28. CerrarPila(meaux);
  29. DestruirPila(meaux);
  30. end;
Add Comment
Please, Sign In to add comment