Ejemplo n.º 1
0
 public void PeekLastAdded()
 {
     stack = new StackAdt <int>();
     stack.Add(1);
     stack.Add(lastAdded);
     startCount  = stack.Count;
     valuePeeked = stack.Peek();
 }
Ejemplo n.º 2
0
 public void GetLastAdded()
 {
     stack = new StackAdt <int>();
     stack.Add(1);
     stack.Add(lastAdded);
     startCount     = stack.Count;
     valueRetrieved = stack.Get();
 }
Ejemplo n.º 3
0
 public void AddToStack()
 {
     stack = new StackAdt <int>();
     stack.Add(valueAdded);
 }