Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool Eliminar(int dato)
- {
- if (!(EstaVacio()))
- {
- for (int i = 0; i < this.top; i++)
- {
- if (this.arreglo[i] == dato)
- {// fijamos el valor de i
- for (int y = i; y < this.top - 1; y++)
- this.arreglo[y] = this.arreglo[y + 1];
- this.top--;
- return true;
- }
- }
- return false;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement