谁有C#中 winForms做个计算器的代码啊!!

来源:百度知道 编辑:UC知道 时间:2024/05/15 06:42:33

先占个位置,网上应该有源码。一会我写个试试

贴个玩玩,凑合着能做加减乘除了,其他的运算懒的加了。
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 Calculation
{
public partial class Form1 : Form
{
private static List<string> contains = new List<string>(3);
private static bool firstTime =true;
public Form1()
{
InitializeComponent();
}

private void NumButton_Click(object sender, EventArgs e)
{
string temp = ((Button)sender).Text;
List<String> CalOperator = new List<string> { "+", "-", "*", "/", "=" };
List<String> SpButton = new List<string> { "C", &q