ParadigmShifter
Random Nonsense Generator
In my C++ class, I wrote a program. I debugged it and everything worked fine. I was about to submit it but had the bright idea of testing it. It didn't run. I checked the code, compiled it again, debugged it again, and basicly did everything I could think of to get it to work. Nothing helped. The problem would only show up when I ran the exe file. After a week I found the problem: The exe file refered to a xml file. I had the folder with the assignment, inside of that was a folder and the exe file. Inside of the folder was everything else (cpp files, xml file, etc). The reason it would work in the debugger was the xml file was in that folder but I failed to realize that I would also need to have the xml file in the same folder as the exe file for it to work.
Dude, shouldn't you have added some error handling to your program? Maybe a message about a missing xml file?
