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); } }
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()); } }
public DaThuc() { mangDonThuc = new DonThuc[1]; mangDonThuc[0] = new DonThuc(); }