main
程序 

所属分类:游戏
开发工具:Visual C++
文件大小:1KB
下载次数:9
上传日期:2014-05-10 11:39:44
上 传 者ELILI
说明:  设计一个猜数字游戏,游戏规则如下: 1、游戏开始,电脑随机生成三个不重复的十以内的数字。2、玩家输入他所猜测的三个数字3、将玩家提交的数与电脑生成的数进行比较,结果显示成"*A*B"。A代表位置正确数字也正确,B代表数字正确但位置不正确,比如:"2A0B"表示您有2个数字的位置正确且数值也正确,除此以外,您还猜对了0个数字,但位置不对。4、玩家共有7次机会,在7次内,如果结果为“3A0B”,游戏成功,退出游戏。如果7次里玩家都没有猜对游戏失败。
(Design a guessing game, rules of the game are as follows: 1, the game starts, the computer randomly generates three non-repeating digits ten less. 2, players enter the three numbers he speculated 3, players will count filed with the computer-generated comparison, the results displayed as " * A* B" . A representative of the position of the correct figure is correct, B represents the number correct but the location is not correct, such as: " 2A0B" means you have two numbers in the correct position and the value is correct, in addition, you guessed 0 figures, but wrong place. 4, a total of seven players the opportunity, within seven times, if the result is " 3A0B" , the game successfully, quit the game. If the players are not seven times in the game failed to guess.)

文件列表:
main.cpp (1192, 2014-03-14)

近期下载者

相关文件


收藏者