sycamore1990 发表于 2013-2-18 13:01
麻烦纠正下。谢谢啦。。
#include <stdio.h>
int main()
{int a=0,b=0,c=0;//a秒b分c时
while(1>0)
{
system("cls");
printf("%d:%d:%d",a,b,c);
a=a+1;
if(a=60)
{
b=b+1;
a=0;
if(b=60)
{
c=c+1;
b=0;}
}
sleep(1000);
}
sleep(5000);
return 0;
}
|