Example #1
0
 public void PushIn(int information)  //положить узелок в стек
 {
     topofstack = new MyNode(topofstack, information);
 }
Example #2
0
 public MyNode(MyNode nextelement, int information)          // конструктор для узла
 {
     this.nextelement = nextelement;
     this.information = information;
 }