可视化程序设计-个人记账本(课程设计)讲述.docVIP

  • 4
  • 0
  • 约1.01万字
  • 约 15页
  • 2017-03-25 发布于湖北
  • 举报

可视化程序设计-个人记账本(课程设计)讲述.doc

可视化程序设计-个人记账本(课程设计)讲述

可视化程序设计 实验报告 学 号: 2143214 姓 名: 李子厚 提交日期: 2016-11-1 成 绩: 东北大学秦皇岛分校 实验一 控件和窗体 【实验内容】做一个简单的小计算器,实现整数的加减法 【关键代码】 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 WindowsFormsApplication1 { public partial class Form1 : Form { double outValue = 0; bool c = false; string d; bool f = true; int x = 0; int y = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { caculate(1); } private void button2_Click(object sender, EventArgs e) { caculate(2); } private void button3_Click(object sender, EventArgs e) { caculate(3); } private void button4_Click(object sender, EventArgs e) { caculate(4); } private void button5_Click(object sender, EventArgs e) { caculate(5); } private void button6_Click(object sender, EventArgs e) { caculate(6); } private void button7_Click(object sender, EventArgs e) { caculate(7); } private void button8_Click(object sender, EventArgs e) { caculate(8); } private void button9_Click(object sender, EventArgs e) { caculate(9); } private void button14_Click(object sender, EventArgs e) { caculate(0); } private void button10_Click(object sender, EventArgs e) { c = true; d = +; textBox1.Text += +; } private void button11_Click(object sender, EventArgs e) { c = true; d = -;

文档评论(0)

1亿VIP精品文档

相关文档