文件名称:Guess-Numbers-game
介绍说明--下载内容均来自于网络,请自行研究使用
猜数字游戏!(C语言程序,包含完整的源代码有详细注释、可执行文件,本人计算机实习期间编写的,)
猜数字游戏:此游戏通常由两个人玩,一方出数字,一方猜。出数字的人要想好一个没有重复数字的4位数,不能让猜的人知道。猜的人就可以开始猜。每猜一个数字,出数者就要根据这个数字给出几A几B,其中A前面的数字表示位置正确的数的个数,而B前的数字表示数字正确而位置不对的数的个数。例如,正确答案为 8234,而猜的人猜 8349,则出数者提示猜数者猜的结果是 1A2B,其中有一个8的位置对了,记为1A,而3和4这两个数字对了,而位置没对,因此记为 2B,合起来就是 1A2B。 接着猜的人再根据出题者的几A几B继续猜,直到猜中(即 4A0B)为止。-Guess Numbers game: the game is usually two personal play, one party out Numbers, one party guess. Out of the digital person to be a no repeat of the 4 digit Numbers, can t let guess people know. Guess who can begin to guess. Each guess A number, the three-dimensional will according to the figures A few A few B, among them in front of A digital said the number of the right position number, and B digital said before digital right and wrong number of the number of position. For example, the right answer for 8234, and guess people guess 8349, then the number of tips guess who tested the result is 1 A2B guess, one of the eight position on the, notes for 1 A, and 3 and 4 of the two Numbers, and position of not, so remember to 2 B, add up to is 1 A2B. Then guess people according to the ChuTiZhe again A few A few B continue to guess, until guess (namely 4 A0B ?
猜数字游戏:此游戏通常由两个人玩,一方出数字,一方猜。出数字的人要想好一个没有重复数字的4位数,不能让猜的人知道。猜的人就可以开始猜。每猜一个数字,出数者就要根据这个数字给出几A几B,其中A前面的数字表示位置正确的数的个数,而B前的数字表示数字正确而位置不对的数的个数。例如,正确答案为 8234,而猜的人猜 8349,则出数者提示猜数者猜的结果是 1A2B,其中有一个8的位置对了,记为1A,而3和4这两个数字对了,而位置没对,因此记为 2B,合起来就是 1A2B。 接着猜的人再根据出题者的几A几B继续猜,直到猜中(即 4A0B)为止。-Guess Numbers game: the game is usually two personal play, one party out Numbers, one party guess. Out of the digital person to be a no repeat of the 4 digit Numbers, can t let guess people know. Guess who can begin to guess. Each guess A number, the three-dimensional will according to the figures A few A few B, among them in front of A digital said the number of the right position number, and B digital said before digital right and wrong number of the number of position. For example, the right answer for 8234, and guess people guess 8349, then the number of tips guess who tested the result is 1 A2B guess, one of the eight position on the, notes for 1 A, and 3 and 4 of the two Numbers, and position of not, so remember to 2 B, add up to is 1 A2B. Then guess people according to the ChuTiZhe again A few A few B continue to guess, until guess (namely 4 A0B ?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
20095129-猜数字游戏\20095129-猜数字游戏.cpp
...................\20095129-猜数字游戏.exe
...................\20095129-猜数字游戏.obj
20095129-猜数字游戏
...................\20095129-猜数字游戏.exe
...................\20095129-猜数字游戏.obj
20095129-猜数字游戏