I'm experienceing an unknown error. My IDE (Visual Studio 2012) isn't giving me any errors. But when I run the program it crashes. More specifically after accepting the first input, it prints out an array. Either just before or right after the print out of this array the program crashes.
This error only occurred after I replaced everything in my code that was once a char to a newly created struct called "Slot." The easy answer would be to change it back and move on. But I believe this program will be easier in the end if I can have each array element hold two values. The first a bool value that tells me if the slot is filled or not, the second holding a char value.
I am open to suggestions, but I would rather keep my current format and make the needed adjustments. If I haven't already made it clear my compiler isn't pointing out any obvious syntax errors. It will compile, but it will also crash. I've tried setting breakpoints and stepping through the program, but it doesn't fail then. It always runs all the way through.
line57 GameBoard[i] = new Slot[EXTRA_COLUMS]; shouldn't that be WinSize+EXTRA_COLUMNS otherwise when you loop you are going out of bounds. (btw it is columns ;P not colums