Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public bool Pop(bool verbose)
  2. {
  3. //toDo
  4. if (!EstaVacia())
  5. {
  6. this.top--;
  7. for (int i = this.top; i < this.max-1; i++)
  8. {
  9. this.arreglo[i + 1] = this.arreglo[i];
  10. if (verbose)
  11. Console.WriteLine(MostrarVerbose());
  12. //imprimir estado de la pila
  13. }
  14. return true;
  15. }
  16. else
  17. return false;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement