-
2.3
一个简单的猜数游戏程序:
利用Math.random()方法生成0-1之间的double型数dNum,将dNum转换为0-100之间的整数iNum。
利用KeyInput.readInt()方法接收键盘输入的整数inNum。如果inNum小于iNum,在屏幕上显示“输入的值小,请输入更大的数.”;如果inNum大于iNum,在屏幕上显示“输入的值大,请输入更小的数.”;如果inNum等于iNum,在屏幕上显示“猜对了.”,并结束运行。
猜测错误的时候,重新输入inNum,直到猜对为止。如果猜测10次后仍未猜对,显示“猜测次数已达10次,猜数失败.”,并结束程序的运行。
(A simple guessing game program: use Math.random () method to generate double-type numbers between 0-1 dNum, will dNum into an integer between 0-100 iNum. use KeyInput.readInt () method receives the keyboard input integer inNum. If inNum less than iNum, the screen " Enter the value of the small, enter the greater number." If inNum than iNum, the screen " Enter the value of the large number of smaller type." If inNum equal iNum, displayed on the screen, " guessed." and end the run. guess wrong, re-enter inNum, until you guess it right up. If the guess was right 10 times not to show " guess the number has reached 10 times, guess the number of failures." And end the program.)
- 2010-11-03 14:29:09下载
- 积分:1
-
Source-image-contrast-stretching
经典的图像对比度拉伸源码,希望给同行提供帮助。(Source image contrast stretching)
- 2011-04-26 11:29:56下载
- 积分:1
-
条形码生成
自己改造的根据自定义规则生成条形码的软件,可任意生成多位数字的条形码;
支持序列批量生成,支持将生成的图形保存到word文件中;
- 2023-02-13 00:30:04下载
- 积分:1
-
Dual_DC_DC
自己做的双向dc/dc,双环控制,跟踪的不错(DUAL DC/DC Voltage and current loop)
- 2021-04-25 13:18:46下载
- 积分:1
-
遗传算法源代码
遗传算法的源程序,里面有基本的遗传算法的各种操作过程,很全面!(genetic algorithm source, there are basic genetic algorithm various operational and very comprehensive!)
- 2005-05-23 10:57:08下载
- 积分:1
-
try_fblms
关于FBLMS的算法例子,关于有源噪声控制的(about FBLMS)
- 2012-04-08 15:29:05下载
- 积分:1
-
idoq
说明: 名称:制作托盘程序 编译环境:vc++,net2003(Name: make pallet program compile environment: vc, net2003)
- 2018-12-30 23:30:19下载
- 积分:1
-
BCH3
BCH3.c,提供m<21以下的所有码长的BCH编解码模块。以供大家参考。谢谢(BCH encoder&decoder GF(2^m) m<21)
- 2021-01-26 11:58:36下载
- 积分:1
-
YUVPlayer-corrected
修正的版本,运行时下载个foreman_qcif.yuv,把程序中相关的路径改成你自己放foreman_qcif.yuv的路径就是可以了(Revised version, run-time to download a foreman_qcif.yuv, the procedures related to the path into the path of your own that you can put a foreman_qcif.yuv)
- 2010-08-07 17:36:38下载
- 积分:1
-
ilmusyrate
这是一个c++编写的 基于tcp的聊天程序!测试中还存着BUG的!()
- 2018-02-19 16:25:12下载
- 积分:1