示例#1
0
文件: Program.cs 项目: nvdirv/nvdirv
 static void Main(string[] args)
 {
 int x = Convert.ToInt32(Console.ReadLine()), y = Convert.ToInt32(Console.ReadLine());
 complex a = new complex(a, b);
 complex b = new complex(5, 56);
 Console.Writeline(a + b);
 Console.ReadKey();
 }
示例#2
0
文件: Program.cs 项目: nvdirv/nvdirv
public static   complex operator +(complex a, complex b)
{
    complex c = new complex();
    c.b = a.b * b.b;
    return c;
}