public void multiPush(PilhaObj aux) { while (!aux.IsEmpty()) { this.Push(aux.Pop()); } }
public object multiPop(int n) { if (IsEmpty() || n > topo) { return(null); } PilhaObj aux = new PilhaObj(n); for (int i = 0; i < n; i++) { aux.Push(this.Pop()); } return(aux); }