请教各位大神,我程序错在哪里?
#include <reg51.h>
#define uchar unsigned char
#define uint unsigned int
#define p1
#define LED
sbit LED = p1^0;
void DelayMS(uint x )
{ uchar i;
while (x--)
{for(i=120;i>0;i--);}
}
void main()
{ LED = 0;
while(1)
{
LED=~LED;
DelayMS(150);
}
}错误提示为
一位闪灯.C(1): warning C500: MISSING LICENSE ID CODE (LIC) IN 'TOOLS.INI'
一位闪灯.C(6): error C141: syntax error near '<', expected '<id>'
一位闪灯.C(10): error C129: missing ';' before '>'是什么意思?
|