I wrote this program (it is unfinished, due to the runtime error). I compile fine, but then I get a runtime error that causes the program to end and crash.
Please look at the code and, if you have time, compile and look for the problem. I believe that I comment very well, so it shouldn't be bad to read. The .c file is the attachment. Thanks.