-
zt
说明: 函数调用:实现函数与main函数之间的调用,利用循环进行输出(Function calls: calling function and achieve the main function between the use of loop output)
- 2013-12-31 07:39:44下载
- 积分:1
-
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
-
SelectSort
选择排序的实现,是一种基本的排序方法,但是时间复杂度相对较大。(Select Sort realization, is sort of a basic, but relatively large time complexity.)
- 2012-09-27 22:38:22下载
- 积分:1
-
ADXL345_STM32
ADXL345数字加速度传感器STM32代码(stm32 adxl345)
- 2021-04-14 14:38:55下载
- 积分:1
-
opencv中进行灰度转换到阈值化
在window10操作系统上使用visual studio2015配置的opencv环境实现了,RGB颜色的图片经过灰度处理后,在对灰度图进行处理得到二值图片,最后使用阈值化函数进行阈值处理,通知在窗口上添加了滑动条,根据需要进行处理
- 2022-04-28 04:47:34下载
- 积分:1
-
mfcregdll
VB、VC混合编程中字符串的传递,源代码,使用VC制作动态库在VC、VB中使用。(VB, VC mixed programming string transmission, the source code, the use of VC production of dynamic libraries in VC, VB use.)
- 2007-10-31 21:06:40下载
- 积分:1
-
Greedy-Activity-Selector
算法设计与分析--活动安排问题,使用贪心算法实现(Algorithm Design and Analysis- Activities arrangements, using the greedy algorithm)
- 2013-12-19 17:50:01下载
- 积分:1
-
arm_train_course
周立功arm 培训 精华教程,概要介绍嵌入式平台, arm 体系结构(about train of arm developed by zhouligong )
- 2012-01-04 10:42:46下载
- 积分:1
-
DS1302andDS18B20
DS1302+DS18B20+无线遥控应用程序(DS1302+ DS18B20+ wireless remote control applications)
- 2009-09-04 11:01:54下载
- 积分:1
-
phase-equivalence
C 语言,模拟流体相平衡过程,得到混合气体平衡态以后的工况参数(C language to simulate fluid phase equilibrium process, to obtain a mixed gas equilibrium after working parameters)
- 2020-09-04 16:48:06下载
- 积分:1