📌  相关文章
📜  c++ cmd 程序在后台运行 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.465000             🧑  作者: Mango

代码示例1
#include   
#include      
using namespace std;


int main () {   
    cout<<"Some  information is displayed.. \n\n";
    Sleep(5000);

    cout<<"wait.. the console is going to hide and run in background.. \n";
    Sleep(5000);

    ShowWindow(FindWindowA("ConsoleWindowClass", NULL), false);

    while(true) {
                 // Do your hidden stuff in here
    }   
return 0;
}