C# 运算符“*”无法应用于“double”和“string”类型的操作数
doublex=double.Parse(textBox1.Text);doubley=double.Parse(textBox2.Text);doublez=doubl...
double x = double.Parse(textBox1.Text);
double y = double.Parse(textBox2.Text);
double z = double.Parse(textBox3.Text);
label8.Text = 1.2*(x)+1.4*(y).ToString();
label9.Text = 1.35*(x)+1.4*0.7*(y).ToString();
label10.Text = 1.2*((x)+0.5*(y))+1.3*(z).ToString();
label11.Text = 1.2*((x)+0.5*(y))-1.3*(z).ToString(); 展开
double y = double.Parse(textBox2.Text);
double z = double.Parse(textBox3.Text);
label8.Text = 1.2*(x)+1.4*(y).ToString();
label9.Text = 1.35*(x)+1.4*0.7*(y).ToString();
label10.Text = 1.2*((x)+0.5*(y))+1.3*(z).ToString();
label11.Text = 1.2*((x)+0.5*(y))-1.3*(z).ToString(); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询