|
本帖最后由 也有 于 2019-4-25 20:18 编辑
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int a;
a=60;
system("color 72");
while(a>=0);//这里应改成while(a>=0),你加了分号
{
system("cls");
printf("%d",a);
a=a-1;
Sleep(1000);
}
system("pause");
return 0;
} |
|