#include <windows.h>
#include <iostream>
using namespace std;
int main () {
cout<<"Some information is displayed..
";
Sleep(5000);
cout<<"wait.. the console is going to hide and run in background..
";
Sleep(5000);
ShowWindow(FindWindowA("ConsoleWindowClass", NULL), false);
while(true) {
// Do your hidden stuff in here
}
return 0;
}