文件名称:xingyun52
介绍说明--下载内容均来自于网络,请自行研究使用
问题描述:
由用户选择一个商品序号,继而猜商品的价格,如果猜对了,则计算机提示:“Right!”,并在屏幕上输出用户猜了多少次才猜对此数,以此来反映猜数者“猜”的水平,结束游戏;如果猜错了,计算机提示“Wrong!”,并告诉用户所猜的数是高了还是低了。最多可以猜10次,如果猜了10次仍未猜中的话,则停止本次猜数,然后继续猜下一个数。每次运行程序用户可以反复猜多个商品,直到用户想停止时结束游戏。
用户结束游戏后,计算机把商品按照价格由低到高排序,并把排序后的商品序号显示出来。
-Problem Descr iption:
By the user to select a product serial number, and then guess the price, if you guess right, the computer prompts: "Right!", And output on the screen the user guess the only guess how many times this number in order to reflect the number guessing who "guess" level, the end of the game If guess wrong, the computer prompts "Wrong!", and tells the user to guess the number is higher or lower. You can guess up to 10 times, 10 times if you have not guessed guess, then stop this guessing, and then continue to guess the next number. Each user can run the program repeatedly guess more goods until the end when the user wants to stop the game.
Users after the end of the game, the computer according to the commodity price from low to high, and the number of goods after ordering displayed.
由用户选择一个商品序号,继而猜商品的价格,如果猜对了,则计算机提示:“Right!”,并在屏幕上输出用户猜了多少次才猜对此数,以此来反映猜数者“猜”的水平,结束游戏;如果猜错了,计算机提示“Wrong!”,并告诉用户所猜的数是高了还是低了。最多可以猜10次,如果猜了10次仍未猜中的话,则停止本次猜数,然后继续猜下一个数。每次运行程序用户可以反复猜多个商品,直到用户想停止时结束游戏。
用户结束游戏后,计算机把商品按照价格由低到高排序,并把排序后的商品序号显示出来。
-Problem Descr iption:
By the user to select a product serial number, and then guess the price, if you guess right, the computer prompts: "Right!", And output on the screen the user guess the only guess how many times this number in order to reflect the number guessing who "guess" level, the end of the game If guess wrong, the computer prompts "Wrong!", and tells the user to guess the number is higher or lower. You can guess up to 10 times, 10 times if you have not guessed guess, then stop this guessing, and then continue to guess the next number. Each user can run the program repeatedly guess more goods until the end when the user wants to stop the game.
Users after the end of the game, the computer according to the commodity price from low to high, and the number of goods after ordering displayed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
xingyun52.txt