My friend wanted to improve his minesweeper. Please don't ask me questions on this because its not my program. Any help would be appreciated, and please keep the code at high school level. >.> thanks
Had to chop off the headers for it to fit, so here it is:
Does he have a problem with it, or is he only looking for suggestions?
One very important one would be don't call main(). He should move all (well, most of) that stuff in main() to a function and call that function again if the user indicates that he would like to play again.
BTW, main() returns int, also.
Other than that, my (admittedly tired) eye doesn't see any egregious errors. If he plans to distribute this at some point, he'll want to get rid of the system() call and #include the proper headers (no .hes):
I thought you couldn't have an array of a variable size?
Like int board[b][b]
because b is a variable.
You would need a linked list to have a dynamically sized object.
But somehow this works...