在做个空循环不就完了么
要是空循环那循环多少啊
不是一个好方法吧
2006-04-16 19:41
2006-04-16 19:56
2006-04-16 19:58
头文件是什么?
#include <windows.h>

2006-04-16 20:00
2006-04-16 20:02
???

2006-04-16 20:06
满足什么条件就break啊?
2006-04-16 20:08
???
好像用VC++就不行啊
2006-04-16 20:09
[CODE]
#include "windows.h"
#include "iostream.h"
void main()
{
cout<<"hello!world!"<<"停留五秒!"<<endl;
Sleep(5000);
cout<<"已经停留了五秒!"<<endl;
}
[/CODE]

2006-04-16 20:24
[CODE]
#include "windows.h"
#include "iostream.h"
void main()
{
cout<<"hello!world!"<<"停留五秒!"<<endl;
Sleep(5000);
cout<<"已经停留了五秒!"<<endl;
}
[/CODE]
在TC中sleep(5000)是停留5秒
2006-04-16 20:26