登录
首页 » Windows开发 » 采用 Windows 表单的简单计算器

采用 Windows 表单的简单计算器

于 2022-06-29 发布 文件大小:54.87 kB
0 89
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge作者:Yvan Rodrigues@CodeProject 使用代码 using System; using System.Windows.Forms; namespace RedCell.App.Calculator.Example { public partial class Form1 : Form { private double accumulator = 0; private char lastOperation; public Form1() { InitializeComponent(); } private void Operator_Pressed(object sender, EventArgs e) { // An operator was pressed; perform the last operation and store the new operator. char operation = (sender as Button).Text[0];

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104509会员总数
  • 10今日下载