List244
asked on
Closing the console
I have a console program. I would like an option to close it.
I want to do this from outside the main function. So, a simple
return will not due. How can I end it on command?
I want to do this from outside the main function. So, a simple
return will not due. How can I end it on command?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
#include <windows.h>
ASKER