111,097
社区成员




try
{
op2 = Int32.Parse(textBox2.Text);
return;
}
catch (System.FormatException)
{
MessageBox.Show("右边输入的不是一个double数");
return;
}
catch (System.OverflowException)
{
MessageBox.Show("右边输入的值超出表示范围.");
return;
}
// 这句话出问题了
try
{
op2 = Int32.Parse(textBox2.Text);
return;
}
catch (System.FormatException)
{
MessageBox.Show("右边输入的不是一个double数");
return;
}
catch (System.OverflowException)
{
MessageBox.Show("右边输入的值超出表示范围.");
return;
}
// 以上这段代码,无论是不是报错,执行后都会返回的,你再仔细看看!!