发布网友
共1个回答
热心网友
不知道你的运行环境,void要换成int其余代码m=time%100;h=(time-m)/100;if(h>12){h=h-12;printf("%d:%dP.M",h,m);}else{printf("%d:%dA.M",h,m);}