欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 新手請教 [打印本頁]

作者: xiaoqsen    時間: 2010-7-27 11:27
標題: 新手請教

請各位大俠指導一下,下面程序的錯誤在哪:

#include<eg52.h>
#include<intrins.h>
#define uint unsigned int
#define uchar unsigned char
uchar temp;
void delay();
void main()
{
  temp=0xfe;
  P1=temp;
 while(1)
 {
  temp=_crol_(temp,1);
  delay(600);
  P1=temp;
 }
}

void delay()
{
 uint x,y;
 for(x=100;x>0;x--)
  for(y=2000;y>0;y--); 
}

 

 

以下為錯誤提示:

Build target 'Target 1'
assembling STARTUP.A51...
compiling 0727.c...
*** WARNING C318 IN LINE 1 OF 0727.c: can't open file 'eg52.h'
0727.C(4): error C202: 'P1': undefined identifier
0727.C(10): error C202: 'D1': undefined identifier
0727.C(12): error C202: 'D1': undefined identifier
compiling 07271.c...
*** WARNING C318 IN LINE 1 OF 07271.c: can't open file 'eg52.h'
07271.C(10): error C202: 'P1': undefined identifier
07271.C(15): error C202: 'P1': undefined identifier
Target not created

具體可以看附件。

謝謝各位指導!

 


作者: admin    時間: 2010-7-27 11:41

錯在第一行 #include<reg52.h> 你掉了一個 r


作者: 數字媒體處理器    時間: 2010-7-27 22:19
LS真是一言驚醒夢中人啊,難怪一看就覺得那里怪怪的呢
作者: xiaoqsen    時間: 2010-7-28 11:32

謝謝admin






歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1