欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標(biāo)題:
這段程序有沒有錯啊?
[打印本頁]
作者:
dayuge
時間:
2016-5-18 15:16
標(biāo)題:
這段程序有沒有錯啊?
#include "reg51.h"
void delay(unsigned int t)
{
unsigned inti,j;
for(i=t;i>0;i--)
for(j=110;j>0;j--);
}
main()
{
unsigned char w,i;
while(1)
{
w=0xfe;
for (i=0;i<8;i++)
{
P1=w; //循環(huán)點亮LED
w<<=1; //點亮燈的位置移動,最低位補0
w=w|0x01; //將最低位置1
delay(500); //延時
}
}
}
作者:
hahaer_711
時間:
2020-3-6 18:22
第四行的 unsigned inti,j;改成 unsigned int i,j;你漏輸入了一個空格
歡迎光臨 (http://m.raoushi.com/bbs/)
Powered by Discuz! X3.1