try
{
double i = int.Parse(jiage1.Text.Trim());
double i2 = int.Parse(jiage2.Text.Trim());
double i3 = int.Parse(jiage3.Text.Trim());
double i4 = int.Parse(jiage4.Text.Trim());
double i5 = int.Parse(jiage5.Text.Trim());
double i6 = int.Parse(jiage6.Text.Trim());
double i7 = int.Parse(jiage7.Text.Trim());
double i8 = int.Parse(jiage8.Text.Trim());
label5.Text = ((double)(i + i2 + i3 + i4 + i5 + i6 + i7 + i8)).ToString();
}
catch(FormatException ex)
{
MessageBox.Show(ex.Message);
}
加入小数点了计算怎么写?\