C# 计算器

来源:百度知道 编辑:UC知道 时间:2024/05/30 06:47:34
我是一个C#新手,要在windows应用程序下编写一个计算器程序,基本的加减乘除已经可以解决了,但是如何实现像微软自带的计算器一样的累加等算法,和混合运算,是在一点头绪都没有,还有如果用键盘输入,TEXTBOX里什么都可以显示...什么字母,以及无数小数点,如何可以先微软的一样严谨呢?各位大侠``小弟跪求啊!~!!~!~~!~
(累加以及混合算法优先)

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

namespace user
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox txtExp;
private System.Windows.Forms.Button btn1;
private System.Windows.Forms.Button btnReverse;
private System.Windows.Forms.Button btnDot;
private System.Windows.Forms.Button btn0;
private System.Windows.Forms.Button btn9;
private System.Windows.Forms.Button btn8;
private System.Windows.Forms.Button btn7;
private System.Windows.Forms.Button btn6;
private System.Windows.Forms.Button btn5;
private System.Windows.Forms.Button btn4;
private System.Windows.Forms.Button btn3;
private System.Windows.Forms.Button btn2;
private S