#include//头文件
#define uc unsigned char //宏定义
#define ui unsigned int //宏定义
sbit LED=P3^3;//定义LED变量
uc fen,shi,miao,num; //无符号字符型变量
uc code tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};/*0,1,2,3,4,5,6,7,8,9,.*///共阴极编码
void delay(ui x)//1ms延时函数
{
ui i,j;
for(i=0;i