unsigned char table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};void main(){char i=0;for(i=0;i<10;i++){LED_PORT=table[i];delay_ms(1000);}}上述程序可以显示0-9.()
查看答案
#includevoid main(){int a=3,b=5;int temp;printf("交换前a=%d,b=%d\n",a,b);temp=a;a=b;b=temp;printf("交换后a=%d,b=%d\n",a,b);}上述程序是错误的。()
A. 对
B. 错
unsigned char table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};void main(){char i=0;unsigned char *p=table;for(i=0;i<10;i++){LED_PORT=();delay_ms(1000);}}
LCD1602分为带背光和不带背光两种。
A. 对
B. 错