How would I go about making my program close instantly after it finished doing its thing?
Without displaying "Press any key to continue" and waiting to be closed manually.
How would I go about making my program close instantly after it finished doing its thing?
Without displaying "Press any key to continue" and waiting to be closed manually.
Paste a small example program and state your operating system and compiler
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
>Without displaying "Press any key to continue" and waiting to be closed manually.
Don't run it from your IDE. Some GUI front-ends to compilers like Visual C++ do that if you run the program from within it. Open up a command line and start your binary manually, or click on the .exe icon (I'm assuming you're using Windows).
The information given in this message is known to work on FreeBSD 4.8 STABLE.
*The above statement is false if I was too lazy to test it.*
Please take note that I am not a technical writer, nor do I care to become one.
If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
Don't assume that I'm ever entirely serious or entirely joking.