|
我写的这样,不知对不:
[mw_shl_code=c,true]#include <stdio.h>
int main()
{
system("cls");
printf("2:00");
sleep(1000);
system("cls");
int a,b;
a=1;
b=59;
while(b>=1)
{
system("cls");
printf("%d:%.2d",a,b);
b--;
sleep(1000);
}
system("cls");
printf("1:00");
sleep(1000);
system("cls");
int c,d;
c=0;
d=59;
while(d>=0)
{
system("cls");
printf("%d:%.2d",c,d);
d--;
sleep(1000);//两分钟倒计时2:00
}
sleep(5000);
return 0;
}[/mw_shl_code] |
|