Okay, I figured out the larger problem that I've been having with my program, now all I need is it to get out of the loop and finish the program. Well, it won't break out for some reason. Anyone see why?
row = col = 4;
z = 0;
do { array[x][y].replace = '?';
print (array, mark, col, row);
ask (a, x, y, z, array, row, col, count);
if (x == row-1 && y == col-1) break;
}
while (z == 0);
x and y are incremented in ask() and returned. So I figured if x == 3 && y == 3
, it should break from the do while loop and that would be fine. The problem is that when it returns from ask(), hits my if, and then says that the program has stopped working and needs to close.
What am I missing?