temp=0xfe什么意思在c语言中程序出现的有什么含义?#include sbit P1_7=P1^7;unsigned char code table1[]={0x06,0x5b,0x4f,0x66,0x6d};unsigned char code table2[]={0x76,0x79,0x38,0x38,0x3f};unsigned char code table3[]={3,4,5,6,7};unsigned ch
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 03:05:16
temp=0xfe什么意思在c语言中程序出现的有什么含义?#include sbit P1_7=P1^7;unsigned char code table1[]={0x06,0x5b,0x4f,0x66,0x6d};unsigned char code table2[]={0x76,0x79,0x38,0x38,0x3f};unsigned char code table3[]={3,4,5,6,7};unsigned ch
temp=0xfe什么意思
在c语言中程序出现的有什么含义?
#include
sbit P1_7=P1^7;
unsigned char code table1[]={0x06,0x5b,0x4f,0x66,0x6d};
unsigned char code table2[]={0x76,0x79,0x38,0x38,0x3f};
unsigned char code table3[]={3,4,5,6,7};
unsigned char i;
unsigned char a,b;
unsigned char temp;
void main(void)
{
while(1)
{
temp=0xfe;
for(i=0;i0;a--)
for(b=248;b>0;b--);
}
}
}
源程序是这个,其中的“temp=0xfe”什么意思?
temp=0xfe什么意思在c语言中程序出现的有什么含义?#include sbit P1_7=P1^7;unsigned char code table1[]={0x06,0x5b,0x4f,0x66,0x6d};unsigned char code table2[]={0x76,0x79,0x38,0x38,0x3f};unsigned char code table3[]={3,4,5,6,7};unsigned ch
带前缀o的代表八进制,带前缀ox的代表十六进制.temp(temporary 临时的)是变量名,把0xfe赋给它,以二进制为 11111110.