初学者,想编一个简单的计算器,基础不够扎实,不能灵活的运气变量,常量,还有我这里应该还需要转换数据类型,大侠们谁帮我 在我的基础上写完这个计算器
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 WindowsFormsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button14_Click(object sender, EventArgs e)
{
textBox1.Text =textBox1.Text+bnt1.Text;
}
private void button13_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt2.Text;
}
private void button12_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt3.Text;
}
private void button10_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt4.Text;
}
private void button9_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt5.Text;
}
private void button8_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt6.Text;
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt7.Text;
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt8.Text;
}
private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt9.Text;
}
private void button5_Click(object sender, EventArgs e)
{
textBox1.Text = "";
}
private void button15_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt0.Text;
}
private void button16_Click(object sender, EventArgs e)
{
textBox1.Text = textBox1.Text + bnt.Text;
}
private void button4_Click(object sender, EventArgs e)
{
}
private void button17_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}