Been a long time since using C++ but the error/message I keep getting is from Windows. Add in the fact that my program is working ( mostly ) then I can only assume that it's something completely outside of what I know.
The message I get is simply "<insert program name> has encountered a problem and needs to close. We are sorry for the inconvenience." The specifics of my program are as follows: it is currently setup as a project with 2 .cpp files and one .h file. One .cpp file is the main file with the other one running function definitions. The .h file just contains the prototypes. There is only one function that I am using, code posted below.
Then in the main .cpp file it uses "wait_loop();" exactly like that.
int input = 1;
while (input != 13)
input = getch();
I've gotten the same error using different variations of this setup. I know that the function itself works because I've used it in other programs and in the original main file. If it's a really simple problem unrelated to Windows, sorry for posting in the wrong forum.
EDIT: When I said "works ( mostly )" I meant that the program starts, runs, but fails to close and displays aforementioned message. The main program itself works and as far as I know there should be nothing inside it that should cause this problem.