预览加载中,请您耐心等待几秒...
1/7
2/7
3/7
4/7
5/7
6/7
7/7

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

VS制作计算器:usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; namespaceWindowsFormsApplication2 { publicpartialclassForm1:Form { publicForm1() { InitializeComponent(); } doublea,b; stringc; privatevoidbutton11_Click(objectsender,EventArgse) { textBox1.Text=""; } privatevoidbutton12_Click(objectsender,EventArgse) { this.Close(); } privatevoidbutton1_Click(objectsender,EventArgse) { this.textBox1.Text=button1.Text; } privatevoidbutton2_Click(objectsender,EventArgse) { this.textBox1.Text=button2.Text; } privatevoidbutton3_Click(objectsender,EventArgse) { this.textBox1.Text=button3.Text; } privatevoidbutton4_Click(objectsender,EventArgse) { this.textBox1.Text=button4.Text; } privatevoidbutton5_Click(objectsender,EventArgse) { this.textBox1.Text=button5.Text; } privatevoidbutton6_Click(objectsender,EventArgse) { this.textBox1.Text=button6.Text; } privatevoidbutton7_Click(objectsender,EventArgse) { this.textBox1.Text=button7.Text; } privatevoidbutton8_Click(objectsender,EventArgse) { this.textBox1.Text=button8.Text; } privatevoidbutton9_Click(objectsender,EventArgse) { this.textBox1.Text=button9.Text; } privatevoidbutton10_Click(objectsender,EventArgse) { this.textBox1.Text=button10.Text; } publicvoid计算器(strings) { a=Convert.ToDouble(textBox1.Text); textBox1.Text=""; c=s; } privatevoidbutton13_Click(objectsender,EventArgse) { 计算器("+"); } privatevoidbutton14_Click(objectsender,EventArgse) { 计算器("-"); } privatevoidbutton15_Click(objectsender,EventArgse) { 计算器("*"); } privatevoidbutton16_Click(objectsender,EventArgse) { 计算器("/"); } privatevoidbutton17_Click(objectsender,EventArgse) { b=Convert.ToDouble(textBox1.Text); switch(c) { case("+"): textBox1.Text=(a+b).ToString(); break; case("-"): textBox1.Text=(a-b).ToString(); break; case("*"): textBox1.Text=(a*b).ToString(); break; case("/"): textBox1.Text=(a/b).ToString(); break; defau