请指出错误点
#include<reg52.h>#defineuintunsignedint#defineucharunsignedcharsbitD11=P0^0;voiddelay...
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
sbit D11=P0^0;
void delay(uint z)
void main()
{
while(1)
{
D11=0;
delay=(1700);
D11=1;
delay=(1700);
}
}
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=75;y>0;y--);
}
222.C(11): error C244: 'delay': can't initialize, bad type or class
222.C(11): error C132: 'delay': not in formal parameter list
222.C(12): error C244: 'D11': can't initialize, bad type or class
222.C(12): error C132: 'D11': not in formal parameter list
222.C(13): error C244: 'delay': can't initialize, bad type or class
222.C(13): error C132: 'delay': not in formal parameter list
222.C(14): error C141: syntax error near '}'
Target not created 展开
#define uint unsigned int
#define uchar unsigned char
sbit D11=P0^0;
void delay(uint z)
void main()
{
while(1)
{
D11=0;
delay=(1700);
D11=1;
delay=(1700);
}
}
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=75;y>0;y--);
}
222.C(11): error C244: 'delay': can't initialize, bad type or class
222.C(11): error C132: 'delay': not in formal parameter list
222.C(12): error C244: 'D11': can't initialize, bad type or class
222.C(12): error C132: 'D11': not in formal parameter list
222.C(13): error C244: 'delay': can't initialize, bad type or class
222.C(13): error C132: 'delay': not in formal parameter list
222.C(14): error C141: syntax error near '}'
Target not created 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询