hide console window c++ code example
Example 1: how to hide the console c++
#include <WinUser.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
return 0;
}
Example 2: c++ hide show console
#include <windows.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
//ShowWindow(GetConsoleWindow(), SW_SHOW);
return 0;
}