コード例 #1
0
        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();
        }
コード例 #2
0
 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++;
     }
 }
コード例 #3
0
 private void btnequal_Click(object sender, EventArgs e)
 {
     txtexpresion.Text = Polonesa_Reversa.ExpressionCalculate(txtexpresion.Text).ToString();
 }
コード例 #4
0
 private void btnequal_Click(object sender, EventArgs e)
 {
     txtexpresion.Text  = Polonesa_Reversa.ExpressionCalculate(txtexpresion.Text).ToString();
     WaitToCalc.Enabled = false;
     to4 = 1;
 }