using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int n1 = Convert.ToInt32(textBox1.Text.Trim());
int n2 = int.Parse(textBox2.Text.Trim());
Class1 cal = new Class1(n1, n2);
switch (comboBox1.Text.Trim())
{
case "+":
label1.Text = cal.A
学习cs之计算器
最新推荐文章于 2023-01-11 15:57:07 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)