-
我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了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
-
我准备了一个简单的苹果类!这个类可以不设置constructo…
我自己编写的一个简单苹果类!
这个类可以不设置构造函数,但是如果想实现在声明这个类的一个对象时,对这个对象进行初始化,必须有构造函数。不想在创建对象时,初始化可以不设置构造函数。有时构造函数是必须的。-I prepared a simple Apple category! This category can not be provided Constructors, but if we wish to achieve in a statement this type of an object, this object initialization must be Constructors. Do not want to create objects, initialization can not be provided Constructors. Sometimes Constructors is necessary.
- 2023-07-28 21:20:03下载
- 积分:1
-
DOS下的dma读写驱动,加速硬盘的读写操作。
DOS下的dma读写驱动,加速硬盘的读写操作。-Dma under DOS to read and write drive, hard disk read and write speed up the operation.
- 2022-04-22 19:26:14下载
- 积分:1
-
PIC Singlechip PICC environment PIC18Fxx2 Series Universal header files
PIC单片机PICC环境下PIC18Fxx2系列通用头文件-PIC Singlechip PICC environment PIC18Fxx2 Series Universal header files
- 2022-03-20 22:28:15下载
- 积分:1
-
AT24c01及DS18B20应用程序,与大家一起分享
AT24c01及DS18B20应用程序,与大家一起分享-AT24c01 and DS18B20 applications, and the U.S. share
- 2022-03-03 07:42:51下载
- 积分:1
-
- 2022-03-28 13:42:07下载
- 积分:1
-
Весьма интересный наборчик. Советую глянуть)...
Весьма интересный наборчик. Советую глянуть)
- 2023-08-26 23:50:04下载
- 积分:1
-
设计一个鼠标程序,在按下Ctrl键的同时按下鼠标左键,在窗口中拖动鼠标,可以画出一个圆;在按下Shift键的同时按下鼠标左键,在窗口中拖动鼠标,画出一个矩形。...
设计一个鼠标程序,在按下Ctrl键的同时按下鼠标左键,在窗口中拖动鼠标,可以画出一个圆;在按下Shift键的同时按下鼠标左键,在窗口中拖动鼠标,画出一个矩形。-The design of a mouse procedures, press the Ctrl key while pressing the left mouse button, drag the mouse in the window, you can draw a circle in pressing Shift key while pressing the left mouse button, drag the mouse in the window , draw a rectangle.
- 2023-08-03 18:50:03下载
- 积分:1
-
ni sting Hex ni的程序 一个vi 用于字符串和16进制数的转换
ni sting Hex ni的程序 一个vi 用于字符串和16进制数的转换-ni sting Hex ni a vi process for a number of string and 16-band conversion
- 2023-02-22 12:05:04下载
- 积分:1
-
VB is a preparation of a bank with ATM machine transactions
是一个用VB编写得银行ATM机交易的程序-VB is a preparation of a bank with ATM machine transactions
- 2022-03-18 05:27:30下载
- 积分:1