用C#编的计算器

来源:百度知道 编辑:UC知道 时间:2024/05/15 00:30:52
帮我用c#编一个计算器吧
急等着用啊!
不要太难的
打包发给我吧
50分
allenyk.1987@yahoo.com.cn

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace 计算器
{

public partial class MainStrip : Form
{
public MainStrip()
{
InitializeComponent();

}

public string number;
public int OperationType ;//适用于计算的类型,应用数字去控制算法
public double number1,number2 ;
public string Temp;//适用于复制储存中的数据
public double TempData=0;//适用于M等操作的变量

private void Number_0_Click(object sender, EventArgs e)
{
number = number + "0";
number2 = Convert.ToDouble(number);
TextBox.Text = number;
}

private void Number_1_Click(object sender, EventArgs e)
{