Link to home
Start Free TrialLog in
Avatar of List244
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?
ASKER CERTIFIED SOLUTION
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of List244
List244

ASKER

exit what header would that be a part of?
#include <windows.h>