- phonebook 实现通讯录功能
- DBHelper 数据库连接类
- image-assessment-based-mtf 本程序是利用GDI基于MFC编写的灰度位图处理显示
- spectral-method This source code is for image fusion developed in matlab gui.. this code works for spectral method. In which all types of images can be worked for.. medical image or any geographical images.. fusing the image is the most required source code today.
- ti_cgt_c2000_6.2.0_setup_win32 在Code Composer Studio应用中的高版本程序编译器
- CO2程序代码 SMT32操作CO2模块代码
文件名称:Guess Number 猜数字游戏JAVA源代码
-
所属分类:
- 标签属性:
- 上传时间:2012-09-01
-
文件大小:1kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
猜数字游戏1. 随机生成4个0到9的整数,组成一个序列(使用LinkedList<Integer>存储)例如:3 6 4 4System.out.println((int)(Math.random(0*4)))2. 然后要求用户循环猜这4个数子,在用户每猜一次之后,提示用户有几个数字的位置正确了。
例如:用户输入3 7 2 4 (3和4的位置正确了),则提示用户有2个数字正确。3. 使用LinkedList存储用户每次猜测是数字组合。用户可以随时查看之前自己的输入
例如:3 7 2 4
5 7 2 4
……4. 用户猜到第10次时,就没有机会,提示猜测失败。
-Guessing game a randomly generated four integers from 0 to 9 to form a sequence (using the LinkedList <Integer> Storage) such as: 3 6 4 4System.out.println ((int) (Math.random (0* 4))) 2. And then require the user to guess the four the number of sub-cycle, once the user after each guess, prompts the user to have several digit position correct. For example: user input 3724 (3 and 4 in the correct position a), then prompts the user to have two numbers are correct. 3 using LinkedList stores each time a user to guess a digital portfolio. Before users can view their input example: 37,245,724 ... ... 4. When the user guessed the 10th, there is no chance, prompted speculation failed.
例如:用户输入3 7 2 4 (3和4的位置正确了),则提示用户有2个数字正确。3. 使用LinkedList存储用户每次猜测是数字组合。用户可以随时查看之前自己的输入
例如:3 7 2 4
5 7 2 4
……4. 用户猜到第10次时,就没有机会,提示猜测失败。
-Guessing game a randomly generated four integers from 0 to 9 to form a sequence (using the LinkedList <Integer> Storage) such as: 3 6 4 4System.out.println ((int) (Math.random (0* 4))) 2. And then require the user to guess the four the number of sub-cycle, once the user after each guess, prompts the user to have several digit position correct. For example: user input 3724 (3 and 4 in the correct position a), then prompts the user to have two numbers are correct. 3 using LinkedList stores each time a user to guess a digital portfolio. Before users can view their input example: 37,245,724 ... ... 4. When the user guessed the 10th, there is no chance, prompted speculation failed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
11.11.2猜数字.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
