Ejemplo n.º 1
0
 public void TaoMaTran(int soDong, int soCot)
 {
     this.SoDong = soDong;
     this.SoCot  = soCot;
     A           = new int[SoDong, SoCot];
     ChuaXet.Clear();
     for (int i = 0; i < SoCot; i++)
     {
         bool tmp = true;
         ChuaXet.Add(tmp);
     }
     CacDinhDaXoa.Clear();
 }
Ejemplo n.º 2
0
        public void XoaDinh(int id)
        {
            // duyet dong thu id.
            CacDinhDaXoa.Add(id);
            for (int i = 0; i < SoCot; i++)
            {
                A[id, i] = 0;
            }
            for (int i = 0; i < SoDong; i++)
            {
                A[i, id] = 0;
            }

            if (isDoiXung() == true)
            {
                coHuong = false;
            }
            else
            {
                coHuong = true;
            }
            ChuaXet[id] = false;
        }