文件名称:guess
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个猜数字的游戏,由电脑随机产生一个100以内的整数,让用户去猜,如果用户猜的比电脑大,则输出“大了,再小点!”,反之则输出“小了,再大点!”,用户总共只能猜十次,并根据用户正确猜出答案所用的次数输出相应的信息,如:只用一次就猜对,输出“你是个天才!”,八次才猜对,输出“笨死了!”,如果十次还没有猜对,则游戏结束!-Write a number guessing game, the computer generates a random integer less than 100, allowing users to guess, if you guess more than a large computer, the output of " big, then small point!" Otherwise the output is " small, then Great point! " , the user can only guess a total of ten times, and according to the user to guess the correct answer to the number of output with the appropriate information, such as: only once guessed, the output" You are a genius! " , eight only guess , output " Bensi it!" , if ten times did not guess right, the game is over!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
猜数字.txt