C51程序语言出错提示LED_8_!.C(15): error C141: syntax error near '}' 30
#include<reg51.h>#include<intrins.h>#defineucharunsignedchar#defineuintunsignedintsbi...
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit Button=P3^0;
void delay(uint i)
{uint t;
while (i--)
{for(t=0;t<600;t++);
}
}
void main ()
{uchar j;
for(j=0;Button ==0;j++);
{ do while ((j%2) >=0)}
{P1=0xfe;
while(1)
{delay (1000);
P1=_crol_(P1,1);
while(Button ==0) ;
}
}
} 展开
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit Button=P3^0;
void delay(uint i)
{uint t;
while (i--)
{for(t=0;t<600;t++);
}
}
void main ()
{uchar j;
for(j=0;Button ==0;j++);
{ do while ((j%2) >=0)}
{P1=0xfe;
while(1)
{delay (1000);
P1=_crol_(P1,1);
while(Button ==0) ;
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询