1、这是一个整形的计算器;运行结果和代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 整?形?计?算?器public partial class Form1 : Formpublic Form1()InitializeComponent();private void te
2、xtBox1_TextChanged(object sender, EventArgs e)private void button1_Click(object sender, EventArgs e)textBox3.Clear();int Num1;int Num2;int Result;Num1 = int.Parse(textBox1.Text);Num2 = int.Parse(textBox2.Text);Result = Num1 + Num2;textBox3.Text = Result+“ ;textBox1.Clear();textBox2.Clear();private v
3、oid button2_Click(object sender, EventArgs e)textBox3.Clear();int Num1;int Num2;int Result;Num1 = int.Parse(textBox1.Text);Num2 = int.Parse(textBox2.Text);Result = Num1 - Num2;textBox3.Text = Result + “;textBox1.Clear();textBox2.Clear();private void button3_Click(object sender, EventArgs e)textBox3.
4、Clear();int Num1;int Num2;int Result;Num1 = int.Parse(textBox1.Text);Num2 = int.Parse(textBox2.Text);Result = Num1 * Num2;textBox3.Text = Result + “;textBox1.Clear();textBox2.Clear();private void button4_Click(object sender, EventArgs e)textBox3.Clear();int Num1;int Num2;int Result;Num1 = int.Parse(textBox1.Text);Num2 = int.Parse(textBox2.Text);Result = Num1 / Num2;textBox3.Text = Result + “;textBox1.Clear();textBox2.Clear();