static void Main(string[] args) { // Kosu u = new Kosu(11111, 30303); // Kosu h = new Kosu(250247, 47859); /// Kosu j = u + h; Kosu u = new Kosu(long.Parse(Console.ReadLine())); Kosu u = new Kosu(long.Parse(Console.ReadLine())); Kosu h = new Kosu(long.Parse(Console.ReadLine())); Kosu h = new Kosu(long.Parse(Console.ReadLine())); Console.WriteLine(j); Console.ReadKey(); }
public static Kosu operator +(Kosu c, Kosu d) { Kosu e = new Kosu(c.a + d.a, c.b + d.b); return(e); }
public static Kosu operator +( Kosu c, Kosu d) { Kosu e=new Kosu( c.a+d.a,c.b+d.b); return e; }