struct bitDefine{ unsigned bit0:1; unsigned bit1:1; unsigned bit2:1; unsigned bit3:1; unsigned bit4:1; unsigned bit5:1; unsigned bit6:1; unsigned bit7:1; }; struct bitDefine flag1,flag2,flag3; char ScrRam[36];
都是全局的外部变量,存储器flag1,flag2,flag3居然被ScrRam[36]给覆盖了,没任何的提示.而将下面两行换个循序就没问题. |