Original Post
Hello, I'm currently having a problem with a pretty basic and simple program. Basically, it's the start of a dungeons and dragons type of program, but even more basic than that, since I just rediscovered the joys programming. http://rajen.joshi.googlepages.com/codingstuff To save bandwith and make the code easier to read and comprehend, I uploaded it to my google pages. As you can see, this really is quite a primitive version of what I intend to create, since something like this is a good way to exercise my skills and develop further knowledge of C++. Speaking in a very general manner, the program literally thus far should be able to do the following, but isn't doing all of it: -Take in the user's name -Introduce them to the "high-tech" navigation system of the game -Give a basic intro to the story -Jump from prototype function to prototype function until the end of the game is reached, and I have not programmed that far yet since I already have errors The main problem lies within what the entire game relies on: the prototype functions after the main functions have ended. It literally should go from function to function. Perhaps it isn't the best way of doing this, and alternative methods are appreciated, but, to me, it does seem the simplest method at the moment with the small amount of c++ knowledge I possess. Several different things have happened. First of all, randomly, or so it seems to me, the program decides to end after I input a number to perform some sort of action. Often, this happens when I input "0" as the variable "choice" to call up the statistics of my character. However, I also noticed that this is the last function that exists in each prototype function after the main has ended, and I am unsure of whether that factors into the problem. In short, the program ends when it shouldn't be ending, and I'm very confused on how to proceed with this. Any ideas, thoughts, suggestions, comments, criticisms, solutions, or anything constructive would be appreciated! Thanks!