计算器c#程序

来源:百度知道 编辑:UC知道 时间:2024/05/25 03:29:58
要像WINDOS里的计算器一样
我的email 810291274@qq.com

这里可以下载
http://down.cnzz.cn/Info/37973.aspx

这里也有一个计算器的代码,你也可以看看
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 Form1 : Form
{
public decimal First;
public decimal Second;
bool DoClear;
bool FirstOpen;
string Str;
public Form1()
{
FirstOpen = true;
DoClear = true;
First = 0;
Second = 0;
Str = "=";
InitializeComponent();
}

private void clear_Click(object sender, EventArgs e)
{
DoClear = true;