Exemple #1
0
 public void Push(object i)
 {
     head = new Elem <T>(i, head);
     kol++;
 }
Exemple #2
0
 public Elem(object i, Elem <T> j)
 {
     data = i;
     next = j;
 }
Exemple #3
0
 Stack()
 {
     head = null;
     kol  = 0;
 }
Exemple #4
0
        public void push(T ertek)
        {
            Elem <T> elem = new Elem <T>(ertek, top);

            this.top = elem;
        }
Exemple #5
0
 public Verem()
 {
     this.top = null;
 }
Exemple #6
0
 public Elem(T ertek, Elem <T> kovetkezo)
 {
     Ertek     = ertek;
     Kovetkezo = kovetkezo;
 }
Exemple #7
0
 public Elem(int i, Elem j)
 {
     data = i;
     next = j;
 }
Exemple #8
0
 public void Push(int i)
 {
     head = new Elem(i, head);
     kol++;
 }