#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int a,b;
a=2;
b=00;
printf("%d:%d",a,b);
a=1;
while(a=0 && b=0)
{
if(a=1)
{
b=59;
}
system("cls");
printf("%d:%d",a,b);
Sleep(1000);
b=b-1;
if(b=0)
{
a=0;
b=59;
}
}
system("pause");
return 0;
我自己做的,试试吧 |