-
vb 分形树
Dim xs As Integer
Dim ys As Integer
Dim alph As Single
Dim lng As Single
Dim m As Integer
Const PI As Single = 3.14159265
Private Function tree(x As Integer, y As Integer, angle As Single, length As Single, n As Integer)
Dim x0 As Integer
Dim y0 As Integer
Dim alpha As Single
Dim beita As Single
Dim leng As Single
BackColor = vbWhite
If n > 0 Then
x0 = x + Cos(angle) * length
y0 = y - Sin(angle) * length
picture1.Line (x, y)-(x0, y0), vbbrake
alpha = angle - PI / 8
beita = angle + PI / 8
leng = 2 * length / 3
Call tree(x0, y0, alpha, leng, n - 1)
&nbs
- 2022-01-24 19:06:52下载
- 积分:1
-
C series Hanno tower
用C编的hanno塔-C series Hanno tower
- 2023-05-08 01:45:02下载
- 积分:1
-
it can help you know C++ souce program quckily
it can help you know C++ souce program quckily
- 2022-06-26 16:55:59下载
- 积分:1
-
Sorting order by using assembly language
Sorting order by using assembly language
- 2023-05-12 08:25:02下载
- 积分:1
-
Written in assembly code using random number generation algorithm: program mainl...
用汇编代码写的随机数生成算法:
程序主要由八部分组成。主程序main 从键盘输入的10进制数的子程序redigital;产生随机数,并输出随机性评估结果的子程序random;评估一个随机数随机性的子程序evaluAnum;用蒙特卡罗法评估随机性的calpi将数以十六进制输出的子程序printtohex;将数用十进制打印出来的子程序printaxd;输出换行回车的子程序printrn。-Written in assembly code using random number generation algorithm: program mainly by the eight parts. The main program main from the keyboard input 10 the number of decimal subroutine redigital generate random numbers, and output the results of the assessment of the subroutine random random assessment of a random number of random subroutine evaluAnum with the Monte Carlo Method to Evaluate the random of calpi will be hundreds of subroutines hexadecimal output printtohex will be hundreds of subroutines with the decimal print out printaxd the subroutine output carriage return line feed printrn.
- 2022-08-13 21:17:06下载
- 积分:1
-
Temperature LM35 Source Code
Temperature LM35 Source Code
- 2022-03-06 14:57:07下载
- 积分:1
-
《多按键处理程序 》,适用于工控按键处理
《多按键处理程序 》,适用于工控按键处理 -"multi-key handling procedures" applicable to industrial processing keys
- 2022-03-12 04:05:12下载
- 积分:1
-
Jam digital
数字钟项目。想尝试创造一个7段数字时钟。mikrokontrolerat89s52的来源。blogspot.com网站
- 2022-06-13 04:59:27下载
- 积分:1
-
自己编的流水灯,希望大家下下来看看,并给与指导
自己编的流水灯,希望大家下下来看看,并给与指导-Compiled their own water lights, hope that the next down and take a look and give guidance
- 2023-06-13 09:20:04下载
- 积分:1
-
文件服务器
文件服务器,文件里有详细的服务器源代码和客户端源代码 非常实用
- 2022-08-07 22:06:57下载
- 积分:1