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
It sounds like you need to update your Windows Visual Studio project settings to not be a console app.
If this isn't the case, then please post more information about your environment and tools.