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); }
private void btPrint_Click(object sender, EventArgs e) { lbPilha.Text = "pilha:"; tbPilha.Lines = p.print().Split(); tbValor.Focus(); }
private void btPrint_Click(object sender, EventArgs e) { tbPilha.Lines = p.print().Split(); }