/// <summary> /// Haalt de oude stack in arrayform op. Pushed alle items van de oude stack in de nieuwe stack en /// stopt de nieuwe stack in de stack variabele. /// </summary> public void ChangeStack(Interfacestack <double> newStack) { double[] oldstack = stack.GetALL(); foreach (double i in oldstack) { newStack.Push(i); } stack = newStack; }
public void PushTerm(double term) { terms.Push(term); }
/// <summary> /// Roept de Push methode van de stack aan. /// </summary> public void PushStack(double item) { stack.Push(item); }