这个程序怎么了
这个程序不知道问题出在哪里#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
uchar num,temp,shi,ge;
sbit dula=P3^0;
sbit wela=P3^1;
uchar code table[]={0xc0,0xf9,0xa4,0xb0,
0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83,
0xc6,0xa1,0x86,0x8e};
void delay(uint z);
void main()
{
temp=52;
num=0;
while(1)
{
shi=temp/10;
ge=temp%10;
dula=1;
P0=table[shi];
dula=0;
wela=1;
P0=0x01;
wela=0;
delay(5);
dula=1;
P0=table[ge];
dula=0;
wela=1;
P0=0xf2;
wela=0;
delay(5);
}
}
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}