|
本帖最后由 xjzb 于 2019-1-13 09:25 编辑
#include <stdio.h>
#include <stdlib.h>
#include<windows.h>//使用“Sleep”语句要加头文件“#include<windows.h>”!
int main()
{
int a;
a=60;
system("color 0a");
while(a>=0)
{
system("cls");
printf("%d",a);
Sleep(1000);
a=a-1;
}
system("pause");
return 0;
}
|
|