Is there a line of coding that closes the window automatically. Like if I type exit and hit enter the window closes.
Is there a line of coding that closes the window automatically. Like if I type exit and hit enter the window closes.
Doesnt abort() do that?
Keyboard Not Found! Press any key to continue. . .
Specifically what to type depends what windowing API you're using, but think about this: When they click the button that closes a window, wouldn't they have to have a line of code that tells the window to close? There's probably a member function. You could either look it up in the API docs or tells us what API you're using and see if one of us knows.
the abort(); worked. Sorry for being vague I just learned C++ today.