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