#inlcude<reg51.h>
#define uchar unsigned char P1
uchar tab[]={
0xfe , 0xfd , 0xfb , 0xf7 , 0xef , 0xdf , 0xbf , 0x7f , 0x7f , 0xbf , 0xdf , 0xef , 0xf7 , 0xfb , 0xfd , 0xfe};
void delay()
{
uchar i,j;
for(i=0;i<255;i++)
for(j=0;j<255;j++);
}
void main()
{
uchar i;
while(1)
{
for(i=0;i<16;i++)
{
P1=tab[i];
delay();
}
}
}
然后下面报错
5-2.c(1): warning C315: unknown #directive 'inlcude'
5-2.c(3): error C129: missing ';' before 'tab'
5-2.c - 1 Error(s), 1 Warning(s).
不知道哪里缺少;