Пример #1
0
        static void Main(string[] args)
        {
            DanhBa db = new DanhBa();

            db.NhapTuFile();
            Console.WriteLine(db);
            //db.GhiFile();
            //Console.WriteLine(" Danh sach thue bao co nhieu SDT \n"+db.TimThueBaoCoNhieuSDT());
            //db.SapXepTheoChieuTangCuaTen();
            db.SapXepGiamNgaySinh();
            Console.WriteLine(" sau khi sap xep " + db);
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            DanhBa db = new DanhBa();

            db.Nhap();
            db.NhapTuFile();
            Console.WriteLine("Danh ba khach hang \n" + db);
            //Console.WriteLine("\n\n\n" + db.TimTheoSDT("012"));
            //Console.WriteLine("Danh sach khach hang duong phu dong");
            //Console.WriteLine(db.TimTheoDuong("Phu Dong Thien Vuong"));
            int max = 0;

            // string duong = db.TimDuongSoLuongThueBaoCaoNhat(ref max);
            //Console.WriteLine("Duong {0} co so luong cao nhat la {1}",duong, max);
            // Console.WriteLine(db.TimDanhSachDuong());

            Console.WriteLine(db.TimDuongSoLuongThueBaoCaoNhat(out max));
            Console.WriteLine("So luong cao nhat la " + max);
            Console.ReadKey();
        }