Ai có thể giải thích dùm mình ý nghĩa của 0x01, 0x02... là gì không vậy. Mình gà lắm..
day la cac buoc chay cua den, vi den chop tat nen tai moi buoc can them 1 trang thai tat la 0000 0000
1000 0000 --> 0000 0001 => 0x01
0100 0000 -> 0000 0010 => 0x02
0010 0000 -> 0000 0100 => 0x04
0001 0000 -> 0000 1000 => 0x08
0000 1000 -> 0001 0000 => 0x10
0000 0100 -> 0010 0000 => 0x20
0000 0010 -> 0100 0000 => 0x40
0000 0001 -> 1000 0000 => 0x80
*/
unsigned int mang[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
signed int i,k,j,n;
day la cac buoc chay cua den, vi den chop tat nen tai moi buoc can them 1 trang thai tat la 0000 0000
1000 0000 --> 0000 0001 => 0x01
0100 0000 -> 0000 0010 => 0x02
0010 0000 -> 0000 0100 => 0x04
0001 0000 -> 0000 1000 => 0x08
0000 1000 -> 0001 0000 => 0x10
0000 0100 -> 0010 0000 => 0x20
0000 0010 -> 0100 0000 => 0x40
0000 0001 -> 1000 0000 => 0x80
*/
unsigned int mang[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
signed int i,k,j,n;
Comment