예제 #1
0
 public void push(string s, int a)//для генерации
 {
     NodeGen buf = new NodeGen(s,a);
     buf.nextGen = headGen;
     headGen = buf;
 }
예제 #2
0
 public NodeGen popGen()//для генерации
 {
     NodeGen buf = headGen;
     headGen = headGen.nextGen;
     return buf;
 }
예제 #3
0
 public Stack()
 {
     head = null;
     headGen = null;
 }