예제 #1
0
파일: Program.cs 프로젝트: war-man/OOP2018
        static void Main(string[] args)
        {
            DanhSachChuyenBay cb = new DanhSachChuyenBay();

            cb.Nhap();
            Console.WriteLine(cb);
            cb.TimThongTinChuyenBay("DaLat", "DaNang", "Dalat");
            //Console.WriteLine(cb);
            // cb.SapXepGiamTheoNguon();
            //Console.WriteLine("\n"+cb);
            // Console.WriteLine("Danh sach chuyen bay Dalat" + cb.Vidu());
            Console.ReadKey();
        }
예제 #2
0
        private DanhSachChuyenBay TimChuyenBayTheoNguon(string nguon)
        {
            DanhSachChuyenBay kq = new DanhSachChuyenBay();

            for (int i = 0; i < length; i++)
            {
                if (a[i].nguon == nguon)
                {
                    kq.Them(a[i]);
                }
            }
            return(kq);
        }