Alright, my program is giving me some serious problems. I think I have a memory leak, but I shouldn't have any.
I have ifstream In;
, followed by In.open(thefile.c_str());
, a series of In.get( tempChar );
s, then at the end of the function I have In.close();
.
The problem was that it was getting to line 24, outputting something, then never outputting line 25. It froze. My syntax is entirely correct there, but I think I have a memory leak causing it to freeze. What's my problem?
/* this is c++. I am using g++ on a debian 'etch' linux machine. */