不多废话,直接源代码:
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 Complex
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.comboBox_operation.SelectedIndex = 0;
}
private void button_calc_Click(object sender, EventArgs e)
{
int real1 = 0, real2 = 0;
int image1 = 0, image2 = 0;
string opera="";
try
{
re