Esempio n. 1
0
            public void push(int kulcs)
            {
                VeremCsomoPont s = new VeremCsomoPont(kulcs);

                if (this.vege == null)
                {
                    this.eleje = this.vege = s;
                    return;
                }
                this.vege.kovetkezo = s;
                this.vege           = s;
            }
Esempio n. 2
0
            public void pop()
            {
                if (this.eleje == null)
                {
                    return;
                }
                VeremCsomoPont temp = this.eleje;

                this.eleje = this.eleje.kovetkezo;
                if (this.eleje == null)
                {
                    this.vege = null;
                }
            }
Esempio n. 3
0
 public Verem()
 {
     this.eleje = this.vege = null;
 }
Esempio n. 4
0
 public VeremCsomoPont(int kulcs)
 {
     this.kulcs     = kulcs;
     this.kovetkezo = null;
 }