标题:
MAIN.C(12): error C231: 'TempData': redefinition
[打印本页]
作者:
独白。。
时间:
2019-11-9 17:13
标题:
MAIN.C(12): error C231: 'TempData': redefinition
compiling main.c...
MAIN.C(12): error C231: 'TempData': redefinition
MAIN.C(12): error C231: 'TempData': redefinition
MAIN.C(37): error C237: '_Display': function already has a body
MAIN.C(76): error C237: 'main': function already has a body
main.c - 4 Error(s), 0 Warning(s).
源程序
#define uchar unsigned char
#define uint unsigned int
#define DataPort P1
sbit LATCH1=P2^0;//定义锁存使能端口 段锁存
sbit LATCH2=P2^1;//
sbit PPP=P3^1;
sbit zzz=P0^7;
unsigned char code HEYAO_WeiMa[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char code TempData[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00,0x40};
uchar Temp[8];
uchar timecount;
bit flag;
unsigned long x;//
void delay() ;
void jing();
void Display(unsigned char FirstBit,unsigned char Num)
作者:
独白。。
时间:
2019-11-9 17:13
这个错误怎么改啊,有哪里有问题啊
作者:
csmyldl
时间:
2019-11-9 17:47
未给全程序,猜想在另一处已定义了void Display(unsigned char FirstBit,unsigned char Num)函数,而且这函数中包含了 TempData[]数组,因此这个函数尾要加分号
作者:
小黑屋525
时间:
2019-11-9 20:56
重复定义了,其他地方应该也定义了一个,你再好好找找!
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1