#include <WinUser.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
return 0;
}
/*
Anwser from greper
Made by Mega145
query: c++ hide console
*/
#include <Windows.h>
void HideConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
}
void ShowConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_SHOW);
}
bool IsConsoleVisible()
{
return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}
void ToggleConsole()
{
if (!IsConsoleVisible())
{
ShowConsole();
}
else if (IsConsoleVisible())
{
HideConsole();
}
}
#include <WinUser.h>
ShowWindow(GetConsoleWindow(), SW_HIDE);
#include <windows.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
//ShowWindow(GetConsoleWindow(), SW_SHOW);
return 0;
}
Code Example |
---|
Cpp :: access part of string in c++ |
Cpp :: cpp unions |
Cpp :: tuple c++ |
Cpp :: run c++ program in mac terminal |
Cpp :: split string on character vector C++ |
Cpp :: how to install boost c++ on windows |
Cpp :: vector of strings initialization c++ |
Cpp :: c++ std::sort |
Cpp :: number of lines in c++ files |
Cpp :: SetUnhandledExceptionFilter |
Cpp :: terminal compile c++ |
Cpp :: change integer to string c++ |
Cpp :: sieve cpp |
Cpp :: sleep c++ |
Cpp :: c++ programming language |
Cpp :: arduino funktion |
Cpp :: the code execution cannot proceed because glew32.dll was not found |
Cpp :: hamming distance c++ |
Cpp :: continue c++ |
Cpp :: debugging c/c++ with visual studio code |
Cpp :: c++ cout format |
Cpp :: use uint in c++ |
Cpp :: palindrome checker in c++ |
Cpp :: How to write into files in C++ |
Cpp :: memmove |
Cpp :: image shapes in opencv c++ |
Cpp :: remove element from vector c++ |
Cpp :: iterate through list c++ |
Cpp :: sort vector from largest to smallest |
Cpp :: quicksort |