|
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
printf("3");
Sleep(1000);
printf("2");
Sleep(1000);
printf("1");
Sleep(1000);
printf("0");
system("pause");
return 0;
}
*******************************************************************************************
我就在中间说下
最新版本2.0 都是默认的system("pause");
如果你要用sleep(中间随便填);这里的S必须是大写
#include <stdio.h>
#include <stdlib.h> 还有在开头格式的下面一样加#include <windows.h>
#include <windows.h>
两个基本上没有什么区别就是 如果用上面这里的system("pause"); 最后提示请按任意键继续
如果用sleep最后没有任何提示
*******************************************************************************************
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
printf("3");
sleep(1000);
printf("2");
sleep(1000);
printf("1");
sleep(1000);
printf("0");
sleep(5000);
return 0;
}
|
|