public static TFract operator +(int n, TFract a) { TFract b = new TFract(); TFract c = new TFract(); b.SetNum(n); b.SetDen(1); c = b + a; return(c); }
public static TFract operator +(TFract a, int n) { TFract b = new TFract(); TFract c = new TFract(); b.SetNum(n); b.SetDen(1); c = a + b; return(c); }