文件名称:layout-mine
介绍说明--下载内容均来自于网络,请自行研究使用
编程序模拟“地雷游戏”的布雷和标注地雷功能,其具体要求为:在9×9的方格中,随机布上10颗“地雷”(要求显示时地雷用*号表示);然后在有相邻“地雷”的无雷方格中标注出相邻地雷的个数;最后输出标注后的结果(雷区)。程序实现的要求如下:
布雷功能、标注地雷功能和输出雷区功能均使用独立的函数完成;
布雷功能使用随机函数实现;-Programmed to simulate " mine game" Bray and functional annotation of mines, and its specific requirements: in 99 of the grid, the random fabric 10 " mine" (requires display of landmines represented by an asterisk) then there adjacent " land mines" mine-grid marked out the number of adjacent mines marked the final output results (minefield). Program requirements are as follows: Bray functions marked minefield mines function and output functions are completed using a separate function Bray feature uses a random function to achieve
布雷功能、标注地雷功能和输出雷区功能均使用独立的函数完成;
布雷功能使用随机函数实现;-Programmed to simulate " mine game" Bray and functional annotation of mines, and its specific requirements: in 99 of the grid, the random fabric 10 " mine" (requires display of landmines represented by an asterisk) then there adjacent " land mines" mine-grid marked out the number of adjacent mines marked the final output results (minefield). Program requirements are as follows: Bray functions marked minefield mines function and output functions are completed using a separate function Bray feature uses a random function to achieve
(系统自动生成,下载前可以参看下载内容)
下载文件列表
layout mine.cpp