예제 #1
0
        public static Fraction operator +(int num, Fraction f)
        {
            Fraction fr = new Fraction(f.Denumerator * num, f.Denumerator);

            return(fr + f);
        }
예제 #2
0
        public static Fraction operator +(Fraction f, int num)
        {
            Fraction fr = new Fraction(f.Denumerator * num, f.Denumerator);

            return(f + fr);
        }