文件名称:Clearnumbersgame
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.99kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
清除数字游戏:计算机生成一个1-100范围内的5×5的二维数组,游戏开始时,计算机给出一个数字a,由玩家从该二维数组中选择两个数字,如果两者之和为a,则将这两个数字清除(相应数组元素置0),然后计算机再给出一个数字b,由玩家再次从剩下的数组中选择两个数字,看是否能清除,依次进行直到数组中所有数字被清除,最后计算机显示游戏时间。-Removal of a numbers game: a computer-generated 1-100 within the scope of the two-dimensional 5 × 5 array, the game started, the computer is given a number a, by players from the two-dimensional array to choose the two figures, if the total for a, these two figures will be clear (array elements corresponding to 0), and then the computer and then given a number b, players once again by the array from left to choose the two figures to see if can be removed, until the array in order to carry out All figures were removed in the final game time computer display.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Clearnumbersgame.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.