1. 鎬庢牱灏嗕竴涓512*512鐨勭煩闃靛垎涓8*8鐨勫皬鐭╅樀鍧楋紝鐢╟璇瑷瀹炵幇锛屾垨鑰呯畻娉曟濊矾
struct K
{
unsigned char Bit[8];
};
union X
{
unsigned char Bit[8][512];
K x[1];
};
struct Y
{
X y[64];
};
char b[512][512];
Y *y=(Y*) b;
((X*)&y->y[1].x[2])->Bit[6][7]=1;//寮曠敤 鐭╅樀鍏ㄥ眬鍧愭爣 Y=1 X=2 鐩稿瑰潗鏍 X=6 Y=7 鎸8*8鐭╅樀 鐞嗗簲绛変簬 b[1*8 + 6][2*8 +7]
((X*)&y->y[7].x[7])->Bit[5][6]=1;//寮曠敤 鐭╅樀鍏ㄥ眬鍧愭爣 Y=7 X=7 鐩稿瑰潗鏍 X=5 Y=6 鎸8*8鐭╅樀 鐞嗗簲绛変簬 b[7*8 + 5][7*8 +6]