文件名称:fivenumbersguess
- 所属分类:
- JSP源码/Java
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 288kb
- 下载次数:
- 0次
- 提 供 者:
- men***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用C++、Java等面向对象语言实现五位数字猜谜游戏,读入将用户输入的数字后与随机抽取的数字比对,并给出判定结果的表示.
(2). 电脑会将用户提交的数与它自动产生的数进行比较,结果显示成"*Y*N"。Y代表位置正确数字也正确,N代表数字正确但位置不正确,比如:"3Y1N"表示有3个数字的位置正确且数值也正确,除此以外,还猜对了1个数字,但位置不对。共有9次机会,在9次内,如果结果为“5Y0N”,游戏成功。如果9次里都没有猜对游戏失败。-Use C++, Java and other object-oriented language guessing game five numbers, read the number the user input the number of randomly selected after the comparison, and gives the results of that decision. (2). Computer users will be presented It is automatically generated by numbers and compare the number of results displayed as " * Y* N" . Y position of the correct figures are correct on behalf of, N represents a number correctly but not positioned properly, such as: " 3Y1N" that has 3 digits in the correct position and the value is also correct that, you guessed it a number, but the location does not . 9 chances in the 9th, if the result is " 5Y0N" , the game successfully. If you have not guessed 9 times in the game failed.
(2). 电脑会将用户提交的数与它自动产生的数进行比较,结果显示成"*Y*N"。Y代表位置正确数字也正确,N代表数字正确但位置不正确,比如:"3Y1N"表示有3个数字的位置正确且数值也正确,除此以外,还猜对了1个数字,但位置不对。共有9次机会,在9次内,如果结果为“5Y0N”,游戏成功。如果9次里都没有猜对游戏失败。-Use C++, Java and other object-oriented language guessing game five numbers, read the number the user input the number of randomly selected after the comparison, and gives the results of that decision. (2). Computer users will be presented It is automatically generated by numbers and compare the number of results displayed as " * Y* N" . Y position of the correct figures are correct on behalf of, N represents a number correctly but not positioned properly, such as: " 3Y1N" that has 3 digits in the correct position and the value is also correct that, you guessed it a number, but the location does not . 9 chances in the 9th, if the result is " 5Y0N" , the game successfully. If you have not guessed 9 times in the game failed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
课程设计报告1.doc
课程设计报告2.doc
原始测试数据.txt
src\data.txt
...\Debug\suijishu.obj
...\.....\vc60.idb
...\.....\vc60.pdb
...\.....\zhuangxiaosu.exe
...\.....\zhuangxiaosu.ilk
...\.....\zhuangxiaosu.obj
...\.....\zhuangxiaosu.pch
...\.....\zhuangxiaosu.pdb
...\zhuangxiaosu.c
...\zhuangxiaosu.dsp
...\zhuangxiaosu.dsw
...\zhuangxiaosu.ncb
...\zhuangxiaosu.opt
...\zhuangxiaosu.plg
...\注意事项.txt
07005731.exe.exe
src\Debug
src
课程设计报告2.doc
原始测试数据.txt
src\data.txt
...\Debug\suijishu.obj
...\.....\vc60.idb
...\.....\vc60.pdb
...\.....\zhuangxiaosu.exe
...\.....\zhuangxiaosu.ilk
...\.....\zhuangxiaosu.obj
...\.....\zhuangxiaosu.pch
...\.....\zhuangxiaosu.pdb
...\zhuangxiaosu.c
...\zhuangxiaosu.dsp
...\zhuangxiaosu.dsw
...\zhuangxiaosu.ncb
...\zhuangxiaosu.opt
...\zhuangxiaosu.plg
...\注意事项.txt
07005731.exe.exe
src\Debug
src