How can I count a specific neighboring values in a 2D array like in minesweeper in C

后端 未结 0 1039
灰色年华
灰色年华 2020-12-20 03:38

So I have been trying to come up with the solution and only thing coming to my mind is using a lot of ifs but it will make the code unnecessarily long. How can ı automate it

相关标签:
回答
  • 消灭零回复
提交回复
热议问题