文件名称:layout-mine
-
所属分类:
- 标签属性:
- 上传时间:2014-03-22
-
文件大小:1.31kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编程序模拟“地雷游戏”的布雷和标注地雷功能,其具体要求为:在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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.