示例#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;
 }