C++ SLEEP 延时输出内容

180it 2021-06-29 PM 1205℃ 0条
#include <iostream>
#include <ctime>
#include <Windows.h>


using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    
    
    cout << "******************1" << endl;
    Sleep(1000);
    cout << "******************2" << endl;
    Sleep(1000);
    cout << "******************3" << endl;
    Sleep(1000);
    cout << "******************4" << endl;
    Sleep(1000);
    
    
    return 0;
}
支付宝打赏支付宝打赏 微信打赏微信打赏

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

标签: none

C++ SLEEP 延时输出内容