Ejemplo n.º 1
0
        public Pilha inverte()
        {
            Pilha a = new Pilha();

            if (!isEmpty())
            {
                NohPilha temp = topo;
                while (temp != null)
                {
                    a.push(temp.Data);
                    temp = temp.Next;
                }
                a.print();
            }
            return(a);
        }
Ejemplo n.º 2
0
 private void btPrint_Click(object sender, EventArgs e)
 {
     lbPilha.Text  = "pilha:";
     tbPilha.Lines = p.print().Split();
     tbValor.Focus();
 }
Ejemplo n.º 3
0
 private void btPrint_Click(object sender, EventArgs e)
 {
     tbPilha.Lines = p.print().Split();
 }