文件名称:guessnumber
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.48kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一个猜数字游戏,游戏规则如下:
1、游戏开始,电脑随机生成三个不重复的十以内的数字。
2、玩家输入他所猜测的三个数字
3、将玩家提交的数与电脑生成的数进行比较,结果显示成"*A*B"。A代表位置正确数字也正确,B代表数字正确但位置不正确,比如:"2A0B"表示您有2个数字的位置正确且数值也正确,除此以外,您还猜对了0个数字,但位置不对。
4、玩家共有7次机会,在7次内,如果结果为“3A0B”,游戏成功,退出游戏。如果7次里玩家都没有猜对游戏失败。
-A guessing game, the rules of the game are as follows:
1, the start of the game, the computer randomly generated number within three not repeat ten.
2, the player enter his guess three numbers
3, the number of players to submit computer-generated number to compare the results displayed as "* A* B . A representative of the location correct figure, B represents the number is correct but the location is incorrect, such as: "2A0B" you have two numbers in the correct position and value also correctly Alternatively, you guessed 0 number, but the wrong place.
4 players a total of seven chances in seven times, if the result is "3A0B" successful game, quit the game. If seven players did not guess the game has failed.
1、游戏开始,电脑随机生成三个不重复的十以内的数字。
2、玩家输入他所猜测的三个数字
3、将玩家提交的数与电脑生成的数进行比较,结果显示成"*A*B"。A代表位置正确数字也正确,B代表数字正确但位置不正确,比如:"2A0B"表示您有2个数字的位置正确且数值也正确,除此以外,您还猜对了0个数字,但位置不对。
4、玩家共有7次机会,在7次内,如果结果为“3A0B”,游戏成功,退出游戏。如果7次里玩家都没有猜对游戏失败。
-A guessing game, the rules of the game are as follows:
1, the start of the game, the computer randomly generated number within three not repeat ten.
2, the player enter his guess three numbers
3, the number of players to submit computer-generated number to compare the results displayed as "* A* B . A representative of the location correct figure, B represents the number is correct but the location is incorrect, such as: "2A0B" you have two numbers in the correct position and value also correctly Alternatively, you guessed 0 number, but the wrong place.
4 players a total of seven chances in seven times, if the result is "3A0B" successful game, quit the game. If seven players did not guess the game has failed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
guessnumber.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.