设计一个Windows应用程序 完成书中P11【例1-3】一个具有输入功能的Windows应用程序。 提交说明:代码
已帮助 人
回答
共1条回复-
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Zuoye2{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { double c = Convert.ToInt32(textBox1.Text); double f = 9.0 / 5 * c + 32; textBox2.Text = f.ToString(); } }}

