Beispiel #1
0
 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();
 }
Beispiel #2
0
public static   complex operator +(complex a, complex b)
{
    complex c = new complex();
    c.b = a.b * b.b;
    return c;
}