请大佬看一下哪里错了
#include <STC12C5A60S2.H>
char num[]={0XC0,0XF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90}
void Delay1000ms();
void main()
{
char i=1;
P13=0;
P22=0;
P21=0;
P20=0;
P11=0;
while(1)
{
P0=num[i];
i++;
if (i>=9);
i=0;
Delay1000ms();
}
}
void Delay1000ms() //@32MHz
{
unsigned char i, j, k;
i = 122;
j = 152;
k = 234;
do
{
do
{
while (--k);
} while (--j);
} while (--i);
}
此帖出自
小平头技术问答
iii.c(5): error C141: syntax error near 'void'
iii.c(26): error C231: 'Delay1000ms': redefinition
iii.c(40): error C231: 'Delay1000ms': redefinition
iii.c - 3 Error(s), 0 Warning(s).
一周热门 更多>