C语言等待一秒,延时函数sleep()

使用sleep()函数将程序阻塞,头文件在windows系统和linux系统下是不同的 windows Sleep() #include <windows.h> 函数原型 void Sleep(DWORD dwMilliseconds); 参数为毫秒 linux sleep() 函数原型 #include <unistd.h>linux 参数为毫秒 web
相关文章
相关标签/搜索