I'm writing a simple Cell class for a sudoku game, and my overloaded extraction operator is giving me a segmentation fault whenever I use it. Was hoping someone here may be able to help me isolate the issue, as I've checked my code several times over now and cannot seem to figure out what's wrong.
So this leads me to the question: What compiler are you using?
The code worked fine because I commented out the line causing the segfault. Change line 33 to char filename[50];
This will allocate memory, instead of having a pointer to wonderland.