Keil:关于error c141: syntax error near 'sbit'
写法1:#include<at89x51.h>sbits1=P1^0;voidmain(){}写法2:#include<at89x51.h>voidmain(){sbit...
写法1:
#include<at89x51.h>
sbit s1=P1^0;
void main()
{
}
写法2:
#include<at89x51.h>
void main()
{
sbit s1=P1^0;
}
为什么写法1正确,而写法2提示 syntax error near 'sbit' 展开
#include<at89x51.h>
sbit s1=P1^0;
void main()
{
}
写法2:
#include<at89x51.h>
void main()
{
sbit s1=P1^0;
}
为什么写法1正确,而写法2提示 syntax error near 'sbit' 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询