文件名称:bulei
介绍说明--下载内容均来自于网络,请自行研究使用
编程模拟“地雷游戏”。在9*9的方格中,随机布上n(n<20)个“地雷” (有雷为9,无雷为0)。1)按9行9列输出地雷的分布情况(有雷 ‘*’ 表示,无雷输出‘0’);2)统计并输出各方格周边雷的数目(在有相邻地雷的格子内进一步标出相邻地雷数)。注意:①地雷的个数n在程序运行中指定。②地雷的个数n必须与指定的个数相同。-Programming Simulation " landmine game." In Box 9* 9,, n (n < 20) a " mine" (9 thunder, no lightning 0) random cloth. 1) Press the 9 lines of output distribution of landmines 9 (thunder ' *' indicates, no thunder output ' 0 ' ) number 2) statistics and the parties to the grid surrounding mine output (within a lattice of adjacent mines further mark the number of adjacent mines). Note: ① n specifies the number of mines in the program run. ② mines specified number n must be the same number.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bulei.doc