注册民办非企业:Vc++中程序停顿

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 05:35:55

void Sleep(DWORD dwMilliseconds);

参数表示停止的毫秒数

Parameters
dwMilliseconds
Specifies the time, in milliseconds, for which to suspend execution. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of INFINITE causes an infinite delay.
Return Values
None.

什么意思啊?你说得是不是中断啊

delay(毫秒)

使用Sleep()函数,c语言中的delay()在vc中已被替代。