Exemple #1
0
 public DaThuc(int soLuongDonThuc)
 {
     mangDonThuc         = new DonThuc[soLuongDonThuc];
     this.soLuongDonThuc = soLuongDonThuc;
     for (int i = 0; i < this.soLuongDonThuc; i++)
     {
         this[i] = new DonThuc(1, i);
     }
 }
Exemple #2
0
 public void KhoiTaoDaThuc()
 {
     for (int i = 0; i < this.soLuongDonThuc; i++)
     {
         DonThuc mDonThuc = this[i];
         mDonThuc.soMuN = i;
         Console.Write("Nhap gia tri he so cua don thuc thu " + i + " cua da thuc: ");
         mDonThuc.hesoA = double.Parse(Console.ReadLine());
     }
 }
Exemple #3
0
 public DaThuc()
 {
     mangDonThuc    = new DonThuc[1];
     mangDonThuc[0] = new DonThuc();
 }