下面的程序怎么解决啊,大虾们,救命啊!下面是出现的问题和源程序 5
PART1(4):errorC202:'p1':undefinedidentifierPART1(7):errorC202:'nusignde':undefinedide...
PART1(4): error C202: 'p1': undefined identifier
PART1(7): error C202: 'nusignde': undefined identifier
PART1(7): error C141: syntax error near 'char'
PART1(10): error C202: 'i': undefined identifier
PART1(19): error C202: 'LED': undefined identifier
compiling part1.c...
part1.c(1): error C318: can't open file 'part1.c'
compiling nihao.c...
NIHAO.C(4): error C202: 'p1': undefined identifier
NIHAO.C(19): error C202: 'LED': undefined identifier
Target not created
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit LED=p1^0;
void DelayMS(uint x)
{
uchar i;
while(x--)
{
for(i=0;i<120;i++);
}
}
void main()
{
while(1)
{
LED=~LED;
DelayMS(150);
}
} 展开
PART1(7): error C202: 'nusignde': undefined identifier
PART1(7): error C141: syntax error near 'char'
PART1(10): error C202: 'i': undefined identifier
PART1(19): error C202: 'LED': undefined identifier
compiling part1.c...
part1.c(1): error C318: can't open file 'part1.c'
compiling nihao.c...
NIHAO.C(4): error C202: 'p1': undefined identifier
NIHAO.C(19): error C202: 'LED': undefined identifier
Target not created
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit LED=p1^0;
void DelayMS(uint x)
{
uchar i;
while(x--)
{
for(i=0;i<120;i++);
}
}
void main()
{
while(1)
{
LED=~LED;
DelayMS(150);
}
} 展开
1个回答
展开全部
sbit LED=P1^0; //大写 P1
PART1(7): error C202: 'nusignde': undefined identifier //未定义标识符,拼写: unsigned
part1.c(1): error C318: can't open file 'part1.c' -- 没能打开 文件 'part1.c'
改好前面错误再往下查。
PART1(7): error C202: 'nusignde': undefined identifier //未定义标识符,拼写: unsigned
part1.c(1): error C318: can't open file 'part1.c' -- 没能打开 文件 'part1.c'
改好前面错误再往下查。
追问
太厉害了,#include说是没打开,应该怎么办啊,咋打开啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询