I want to write one c++ program, compiling and linking .cpp gives .exe file. if i double click on that and execute it a console gets opened and closed. I don\'t want that consol
On CODEBLOCKS, besides what @ravenspoint said, you have to put this line on your first line of code:
#define _WIN32_WINNT 0x0501 //this is for XP
And then:
ShowWindow (GetConsoleWindow(), SW_HIDE);