报错:PPROJECT.C(18): error C202: 'xms': undefined identifier
ROJECT.C(15): error C141: syntax error near 'xms', expected ')'
#include<reg52.h>
#define unit unsigned int
sbit led1=P1^0;
void delayms(uint);
void main()
{
while(1)
{
led1=0;
delayms(200);
led1=1;
delayms(800);
}
}
void delayms(uint xms)
{
unit i,j;
for(i=xms;i>0;i--)
for(j=110;j>0;j--);
} |