コード例 #1
0
ファイル: Class1.cs プロジェクト: baoduck89/BaiTh2
            static void Main(string[] args)
            {
                PS t = new PS();

                t.Nhap(); t.hien();
                PS t2 = new PS();

                t2.Nhap(); t2.hien();
                PS t3 = t + t2; t3.hien();
                PS t4 = t * t2; t4.hien();

                if (t > t2)
                {
                    Console.WriteLine("ps t1>t2");
                }
                else if (t < t2)
                {
                    Console.WriteLine("ps t1<t2S");
                }
                else
                {
                    Console.WriteLine("hai ps = nhau");
                }
                Console.ReadKey();
            }