How to close the console window after the program?
<p>I'm trying to make a program which will <strong>close the console window</strong> after execution. But it outputs this instead:</p>

<pre><code>(the program output)
--------------------------------
Process exited after 15.7973 seconds with return value 0
Press any key to continue . . .
</code></pre>

<p>I don't want to see this message, I just want to make the program which will <strong>completely close the window</strong>.</p>

<p>End of my program:</p>

<pre><code>   ...
   if(getch==116){
     ...
   }
   system("pause &gt;nul");
   return 0;
}
</code></pre>

<p>I'm using Dev-C++.</p>