我在equals按钮上有错误.
private void button25_Click(object sender, EventArgs e)
{
lblShowOp.Text = "";
switch (operation)
{
case "+":
tb1.Text = (results + Double.Parse(tb1.Text).ToString());
break;
case "-":
// operator '-' cannot be applied to operands of type 'double and string'
tb1.Text = (results - Double.Parse(tb1.Text).ToString());
break;
case "*":
// operator '*' cannot be applied to operands of type 'double and string'
tb1.Text = (results * Double.Parse(tb1.Text).ToString());
break;
case "/":
// operator '/' cannot be applied to operands of type 'double and string'
tb1.Text …Run Code Online (Sandbox Code Playgroud) c# ×1