• 回复
  • 收藏
  • 点赞
  • 分享
  • 发新帖

00.C(21): error C141: syntax error near 'unsigned'

#include
#define uint unsigned int
#define uchar unsigned char
sbit key=P3^4;
sbit key_lock=P3^2;
sbit lock=P3^7;
//uchar code table_b[16]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef,0xf7,0xfc,0xb9,0xde,0xf9,0xf1};
uchar code table[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};

delay( uint del)
{
uint k,j;
for(k=0;k for(j=0;j<1827;j++);
}

void main()
{
  P2=4;
  lock=1;
 uchar x=0;
  while(1)
  {  
     P0=table[x%16];
     if(key==0)
     {
     delay(1);
            if(key==0)
           {
           x++;
           }
     delay(50);
     }
     if(key_lock==0)
     {
     delay(1);
     if(key_lock==0)
        {
        lock=!lock;
        }
     delay(50);
     }
   }

}


实在没找到哪里有问题,跪求各位大神,帮忙找一下问题点,不胜感谢

全部回复(0)
正序查看
倒序查看
现在还没有回复呢,说说你的想法