Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }