Finding it hard to use C++ for minesweeper

i
Last edited on
Your indentation seems to suggest you meant to have curly braces around the statements from lines 24 to 26 and 38 to 39. Does this help?
Kind of, the current output shows a grid of 8x8 but it only outputs the row and column number in each 'square' rather than the mine placement
Are lines 38 and 39 supposed to be printing 'row' and 'col', then?

You may also want to note that line 34 has an identifier identical to the one on line 7, so referring to it in the function will mean the array on line 34. This may not be what you want.
What happened to your first post?
Topic archived. No new replies allowed.