static void Main(string[] args) { StringBuilder expression = new StringBuilder(); Pilha operations = new Pilha(); Console.WriteLine("CALCULADORA DE EXPRESSÕES - POLONESA REVERSA"); Console.Write(">"); string msg = Console.ReadLine(); Console.WriteLine(Polonesa_Reversa.ExpressionCalculate(msg)); Console.ReadKey(); }
private void WaitToCalc_Tick(object sender, EventArgs e) { if (to4 == 3) { txtexpresion.Text = Polonesa_Reversa.ExpressionCalculate(txtexpresion.Text).ToString(); to4 = 1; WaitToCalc.Enabled = false; } else { to4++; } }
private void btnequal_Click(object sender, EventArgs e) { txtexpresion.Text = Polonesa_Reversa.ExpressionCalculate(txtexpresion.Text).ToString(); }
private void btnequal_Click(object sender, EventArgs e) { txtexpresion.Text = Polonesa_Reversa.ExpressionCalculate(txtexpresion.Text).ToString(); WaitToCalc.Enabled = false; to4 = 1; }