예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        public static Kosu operator +(Kosu c, Kosu d)
        {
            Kosu e = new Kosu(c.a + d.a, c.b + d.b);

            return(e);
        }
예제 #4
0
 public static Kosu operator +( Kosu c, Kosu d)
 {
     Kosu e=new Kosu( c.a+d.a,c.b+d.b);
     return e;
 }