/这是一个四位数码管动态显示c语言程序,每隔一秒加一,直至加到9999为止/使用时需采用锁存器#include #includestdio.hunsigned char code LED=0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80, 0x90;unsigned char LEDbuff=0xff,0xff,0xff,0xff;/定义数码管的位选段sbit SEG_bit_1 = P01;sbit SEG_bit_2 = P02;sbit SEG_bit_3 = P03;sbit SEG_bit_4 = P04;unsigned int cnt=0;unsigned int sec =0;unsigned int mini=0;unsigned int hour=0;unsigned char i=0;/*void delay(unsigned int z )unsigned int x,y;