可视化程序设计实验报告学号:2143214 姓名:李子厚提交日期:2016-11-1 成绩:东北大学秦皇岛分校可视化程序设计实验报告东北大学秦皇岛分校计算机与通信工程学院第 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 { publicpartialclassForm1 : Form { double outValue = 0; bool c = false ; string d; bool f = true ; int x = 0; int y = 0; public Form1() { InitializeComponent(); } privatevoid button1_Click(object sender, EventArgs e) { caculate(1); } privatevoid button2_Click(object sender, EventArgs e) { caculate(2); } privatevoid button3_Click(object sender, EventArgs e) { caculate(3); } privatevoid button4_Click(object sender, EventArgs e) { caculate(4); } 可视化程