-
我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第...
我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第一个点出发,终点是在第70个点上。 时钟按秒来数计。随着时钟的转动,程序能够根据下述规则来调节乌龟和兔子的位置。动物 跑动类型 占用时间 跑动量乌龟 快走 50% 向右3个点 后滑 20% 向左6个点 慢走 30% 向右1个点兔子 睡觉 20% 不动 大后滑 20% 向右9 个点 快走 10% 向左12个点 小步跳 30% 向右1个点 慢后滑 20% 向左两个点 -procedures we will use to simulate the traditional hand problems. We will adopt the random number generator of the development of the simulation program. Another winner set up 70 points, each point represents the runway competition of a possible location. The turtle and a rabbit from the starting point and finish in the first 70 points. According to the clock to a few seconds of dollars. As the clock turned to procedures under the following rules to regulate turtle and the rabbit"s location. Running types of animals occupying volume running time 50% of turtles to leave three points right after sliding 20% six points left walking 30% a point right rabbits sleep 20% Fixed After a 20% slide right nine points to leave 10% left
- 2023-05-25 17:55:03下载
- 积分:1
-
较大内存动态数组模板类
CMemBlockArray模板类:按指定的块大小从系统中申请内存,然后以C语言数组的方式使用。VirtualQue模板类:对循环队列的索引操作进行封装,可以将轻易地将一个数组当作循环队列进行管理。
- 2022-02-14 23:06:57下载
- 积分:1
-
link 交换机DES
d-link 交换机DES-1228资料-d-link Switch DES-1228 data
- 2023-02-04 05:40:04下载
- 积分:1
-
Java语言拥有三大特征:平台无关性、网络移动性和安全性,而Java体系结构对这三大特征提供了强大的支持和保证,本文着重介绍Java体系结构对支持信息安全的原理...
Java语言拥有三大特征:平台无关性、网络移动性和安全性,而Java体系结构对这三大特征提供了强大的支持和保证,本文着重介绍Java体系结构对支持信息安全的原理和使用方法。 -Java language has a three main features: platform-independent, network mobility and security, and Java the three major characteristics of this architecture provides a powerful support and guarantee that this article focuses on Java architecture to support information security principles and the use of methods .
- 2022-04-22 13:39:33下载
- 积分:1
-
write Java intellectual puzzles wrenched mobile phone game is based on Midp 2.0
Java写的智力拼图扳手机游戏,是基于Midp 2.0的-write Java intellectual puzzles wrenched mobile phone game is based on Midp 2.0
- 2022-01-25 18:50:01下载
- 积分:1
-
U盘控制芯片CH331,CH331 是一个小容量U 盘的控制芯片,只要外加一个串行存储器芯片,就可以实现2KB 到512KB
的小容量U 盘。...
U盘控制芯片CH331,CH331 是一个小容量U 盘的控制芯片,只要外加一个串行存储器芯片,就可以实现2KB 到512KB
的小容量U 盘。-U disk controller IC CH331, CH331 is a small-capacity USB control chip, As long as plus a serial memory chips, we would achieve 2 KB to 512 KB of small U disk capacity.
- 2022-03-21 20:04:09下载
- 积分:1
-
计算器例子程序,很适合初学者学习使用。欢迎下载互相交流。...
计算器例子程序,很适合初学者学习使用。欢迎下载互相交流。-Calculator example program is very suitable for beginners learning to use.
- 2022-12-08 05:05:03下载
- 积分:1
-
Packet tools (latest version)
封包工具(最新版)-Packet tools (latest version)
- 2022-02-13 17:24:12下载
- 积分:1
-
难得的FFT计算软件文档。对在设计中用到FFT的同行有一定帮助...
难得的FFT计算软件文档。对在设计中用到FFT的同行有一定帮助-dspic fft
- 2023-08-17 04:45:03下载
- 积分:1
-
enterprise inventory management systems, including warehousing, storage, invento...
企业库存管理系统,包括出库,入库,库存查询;单据打印;-enterprise inventory management systems, including warehousing, storage, inventory inquiry; Print documents;
- 2022-02-20 16:52:01下载
- 积分:1