Пример #1
0
        public SoPhuc Hieu(SoPhuc t2)
        {
            SoPhuc tmp = new SoPhuc();

            tmp.thuc = this.thuc - t2.thuc;
            tmp.ao   = this.ao - t2.ao;

            return(tmp);
        }
Пример #2
0
        public static SoPhuc operator +(SoPhuc t1, SoPhuc t2)
        {
            SoPhuc tmp = new SoPhuc();

            tmp.thuc = t1.thuc + t2.thuc;
            tmp.ao   = t1.ao + t2.ao;

            return(tmp);
        }
Пример #3
0
        public SoPhuc Tong(SoPhuc t2)
        {
            SoPhuc tmp = new SoPhuc();

            tmp.thuc = this.thuc + t2.thuc;
            tmp.ao   = this.ao + t2.ao;

            return(tmp);
        }
Пример #4
0
 public SoPhuc(SoPhuc t2)
 {
     this.thuc = t2.thuc;
     this.ao   = t2.ao;
 }