public MangChuoi TimDanhSachDichTheoNguon(string nguon) { MangChuoi kq = new MangChuoi(); for (int i = 0; i < length; i++) { if (a[i].nguon == nguon) { kq.Them(a[i].dich); } } return(kq); }
public void TimThongTinChuyenBay(string s, string d) { MangChuoi dsDich = TimDanhSachDichTheoNguon(s); if (dsDich.length == 0) { return; } Console.WriteLine("Danh sach duong \n" + dsDich); if (dsDich.CoChua(d)) { Console.WriteLine("Co chuyen"); return; } for (int i = 0; i < dsDich.length; i++) { TimThongTinChuyenBay(dsDich[i], d); } }