作业#。 public partial class Form1 : Form
public Form1()
InitializeComponent();
private void button1. .Click(object sender,EventArgs e)
float num1 = 0;
float num2= 0;
float result = 0;
num1 = float.Parse(textBox1.Text); //将文本框输入的字符转换成数值
num2 = float.Parse(textBox2.Text);
result=num1*num2;
textBox3.Text = result.ToString();//将数值转换成字符
private void button2_ .Click(object sender,EventArgs e)
{
textBox1.Text = ";
textBox2.Text = ",
textBox3.Text = ";
戴超宇
我的第一节课的第二个作业
网友评论