找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2334|回复: 3
打印 上一主题 下一主题
收起左侧

MAIN.C(12): error C231: 'TempData': redefinition

[复制链接]
跳转到指定楼层
楼主
ID:634250 发表于 2019-11-9 17:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:634250 发表于 2019-11-9 17:13 | 只看该作者
这个错误怎么改啊,有哪里有问题啊
回复

使用道具 举报

板凳
ID:235200 发表于 2019-11-9 17:47 | 只看该作者
未给全程序,猜想在另一处已定义了void Display(unsigned char FirstBit,unsigned char Num)函数,而且这函数中包含了 TempData[]数组,因此这个函数尾要加分号
回复

使用道具 举报

地板
ID:546770 发表于 2019-11-9 20:56 | 只看该作者
重复定义了,其他地方应该也定义了一个,你再好好找找!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表