在做个空循环不就完了么
要是空循环那循环多少啊
不是一个好方法吧
头文件是什么?
#include <windows.h>
???
满足什么条件就break啊?
???
好像用VC++就不行啊
[CODE]
#include "windows.h"
#include "iostream.h"
void main()
{
cout<<"hello!world!"<<"停留五秒!"<<endl;
Sleep(5000);
cout<<"已经停留了五秒!"<<endl;
}
[/CODE]
[CODE]
#include "windows.h"
#include "iostream.h"
void main()
{
cout<<"hello!world!"<<"停留五秒!"<<endl;
Sleep(5000);
cout<<"已经停留了五秒!"<<endl;
}
[/CODE]
在TC中sleep(5000)是停留5秒