aaa
Last edited on
I'm not sure what the 'minesweeper[row][col] part' is.
Line 25 is of course wrong. It needs to be:
(minesweeper[row][col]==0) || (minesweeper[row][col]==1) || ...
I suggest that the constant value is written first:
(0 == minesweeper[row][col]) || (1 == minesweeper[row][col]) || ...
So line 32 wouldn't be a problem (the compiler would complain).
Line 32: userchoice='f' // This assigns 'f' to userchoice and does not compare
sorry the minesweeper[row][col] is a int array with a pre-determined field of mines, -1 is a mine, o,1,2,3 are not mines.
thanks, but I now cannot get that to display anything but the char array gameplay[row][col] so none of the minesweeper array is being revealed