Пример #1
0
        public DanhBa TimTheoDuong(string duong)
        {
            DanhBa kq = new DanhBa();

            for (int i = 0; i < length; i++)
            {
                if (a[i].diaChi.Contains(duong))
                {
                    kq.Them(a[i]);
                }
            }
            return(kq);
        }
Пример #2
0
        public DanhBa TimThueBaoCoNhieuSDT()
        {
            DanhBa kq  = new DanhBa();
            int    max = TimSoLanSoThueBaoXuatHienNhieuNhat();

            for (int i = 0; i < length; i++)
            {
                if (DemSoDTTheoThueBao(a[i].soCMND) == max && !kq.CoChua(a[i]))
                {
                    kq.Them(a[i]);
                }
            }
            return(kq);
        }