Exemple #1
0
 public Stack(T data)
 {
     count = 1;
     top   = new StackNode <T>(data);
 }
Exemple #2
0
 public StackNode(T d)
 {
     data = d;
     next = null;
 }
Exemple #3
0
 public Stack()
 {
     count = 0;
     top   = null;
 }
Exemple #4
0
 public StackNode()
 {
     next = null;
 }