没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
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 HaoltCalculator
...{
public partial class _MainFrm : Form
...{
private double nPrevValue = 0;//上一次值
private bool bAppend = true;//用户按的数字是否连接在显示的数字后面
private string strPrevOpar = "";//上一次的操作符号
public _MainFrm()
...{
InitializeComponent();
}
private void NumButton_Click(object sender, EventArgs e)
...{
if (bAppend)...{//在追加状态
Button btn = sender as Button;
if (btn.Text=="0")...{
if (textBoxResult.Text == "") ...{
textBoxResult.Text += "0";
} else if(textBoxResult.Text == "0")...{
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HaoltCalculator
...{
public partial class _MainFrm : Form
...{
private double nPrevValue = 0;//上一次值
private bool bAppend = true;//用户按的数字是否连接在显示的数字后面
private string strPrevOpar = "";//上一次的操作符号
public _MainFrm()
...{
InitializeComponent();
}
private void NumButton_Click(object sender, EventArgs e)
...{
if (bAppend)...{//在追加状态
Button btn = sender as Button;
if (btn.Text=="0")...{
if (textBoxResult.Text == "") ...{
textBoxResult.Text += "0";
} else if(textBoxResult.Text == "0")...{











资源评论

ctr54188
- 粉丝: 1
- 资源: 1

上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
已下载
下载帮助

看过该资源的人还看了
安全验证
文档复制为VIP权益,开通VIP直接复制
