Is there a cleaner way to write this C code?

后端 未结 0 1395
太阳男子
太阳男子 2020-12-22 02:49

I have to fill a matrix with random numbers 0 or 1, but if a cell contains 1, the other 8 around it must be 0. As a beginner, I tried to implement my code in this way:

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