keil中出现error c141 :syntax error near ‘unsigned’????
voidShowDisp(uint8tPulsenum,uint8tPulsecnt,uint8tcnt1s){#defineDispCodeunsignedintDis...
void ShowDisp(uint8 tPulsenum, uint8 tPulsecnt, uint8 tcnt1s)
{
#define DispCode unsigned int
Display(6, DispCode[tPulsenum%10]); //显示上次测量的心跳数
tPulsenum = tPulsenum/10;
Display(7, DispCode[tPulsenum%10]);
Display(3, DispCode[tPulsecnt%10]); //显示测试中的心跳
tPulsecnt = tPulsecnt/10;
Display(4, DispCode[tPulsecnt%10]);
Display(0, DispCode[tcnt1s%10]); //显示测试中的时间
tcnt1s = tcnt1s/10;
Display(1, DispCode[tcnt1s%10]);
} 展开
{
#define DispCode unsigned int
Display(6, DispCode[tPulsenum%10]); //显示上次测量的心跳数
tPulsenum = tPulsenum/10;
Display(7, DispCode[tPulsenum%10]);
Display(3, DispCode[tPulsecnt%10]); //显示测试中的心跳
tPulsecnt = tPulsecnt/10;
Display(4, DispCode[tPulsecnt%10]);
Display(0, DispCode[tcnt1s%10]); //显示测试中的时间
tcnt1s = tcnt1s/10;
Display(1, DispCode[tcnt1s%10]);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询