-
-
happy564 发表于 2011/11/7 8:36:49
不用一直除的,可以这样! void transfer() { line_1[0]
=hour/10+'0'; line_1[1]=hour%10+'0'; line_1[2]=':';
line_1[3]=minute/10+'0'; line_1[4]=minute%10+'0';
line_1[5]=':'; line_1[6]=second/10+'0'; line_1[7]
=second%10+'0'; } void my(void) interrupt 1 { TH0=
(65536-50000)/256; TL0=(65536-50000)%256; P1=~P1; if(+
+m==20) { m=0; second++; if(second==60) ...
引用 happy564 2011/11/7 8:36:49 发表于2楼的内容