static void Main(string[] args) { ps phanso1 = new ps(1, 2); ps phanso2 = new ps(1, 2); Console.Write((phanso1 + phanso2).ToString()); Console.ReadKey(); }
public bool SoSanh(ps a) { float x; float y; if (ms != a.ms) { x = ts * a.ms; y = ms * a.ts; } else { y = ts; x = a.ts; } if (x > y) { return(true); } return(false); }