阅读:1401回复:4
franklin c51中出现的问题48 void w_data(data,len) *** ERROR 141 IN LINE 48 OF D:\\FC51\\SOURCE\\R1R.C: syntax error near \'data\' 49 ulong data; *** ERROR 141 IN LINE 49 OF D:\\FC51\\SOURCE\\R1R.C: syntax error near \';\' 50 uchar len; 51 { uchar i=len-1; *** ERROR 141 IN LINE 51 OF D:\\FC51\\SOURCE\\R1R.C: syntax error near \'{\' *** ERROR 247 IN LINE 51 OF D:\\FC51\\SOURCE\\R1R.C: non-address/-constant initializer C51 COMPILER V3.96, SN-83203013 R1R 04/16/02 22:02:35 PAGE 2 52 ulong j=k<<(len-1); *** ERROR 202 IN LINE 52 OF D:\\FC51\\SOURCE\\R1R.C: \'k\': undefined identifier 53 ulong k=0x01; 54 for(i;i>=0;i--) *** ERROR 141 IN LINE 54 OF D:\\FC51\\SOURCE\\R1R.C: syntax error near \'for\' *** ERROR 141 IN LINE 54 OF D:\\FC51\\SOURCE\\R1R.C: syntax error near \';\', expected \')\' *** ERROR 129 IN LINE 54 OF D:\\FC51\\SOURCE\\R1R.C: missing \';\' before \'>=\' 55 { P13=(data&j)>>i; 56 j=j>>1; 57 sck_w(); 58 } 59 P11=1; 60 } 其他与之无关的语句都被我删掉了,我感到这个问题很奇怪,特请高手指教。谢谢! |
|
沙发#
发布于:2002-04-17 00:02
48,49行 data是保留字
51,52行变量初始化必须是常数不能是变量 54行i没有初始化 |
|
板凳#
发布于:2002-04-17 22:42
48,49: data 为保留字.
51: 前面错误之派生物. 52: 此时k没定义. 54: 同51. |
|
|
地板#
发布于:2002-04-18 03:14
我是满楼,你的分应该给我,问题是我帮你解决的
|
|
地下室#
发布于:2002-04-19 10:04
谢谢大家帮助我解决问题,现在这个问题已经成功解决了,以后还请多多指教!我真是越来越喜欢这个网站了,谢谢大家!!!
|
|