private void Equal_Button_Click(object sender, EventArgs e) { count += 1; Console.WriteLine(ResultTextbox.Text); Expression = ResultTextbox.Text; String Result = Convert.ToString(InfixEvaluation.evaluate(Expression)); ResultTextbox.Text = Result; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Console.WriteLine(InfixEvaluation.evaluate("10 + 2 * 6")); //System.out.println(EvaluateString.evaluate("100 * 2 + 12")); //System.out.println(EvaluateString.evaluate("100 * ( 2 + 12 )")); //System.out.println(EvaluateString.evaluate("100 * ( 2 + 12 ) / 14")); Application.Run(new FormCalculator()); }