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