C++ 延时执行显示

180it 2020-10-16 PM 1401℃ 0条
#include <windows.h>
#include <iostream>
#include <ctime>
//加入连接库
#pragma comment(lib, "wininet.lib")

using namespace std;
void mySleep(int msecond)
{
    clock_t s;
    s = clock();
    while(clock() - s < msecond);
}

int main(int argc, char* argv[])
{
cout<<"演示显示";
mySleep(5000);
cout<<"******************";

    return 0;
}
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

C++ 延时执行显示