-
2维数组 截断 追加 测试
应用背景
二维数组的截断和追加并不像TStringList那么简单。在研究二维数组的截断和追加时,写了本例子来研究。提供给有相同问题的后来人参考,代码有点青涩,毕竟是研究算法的的demo,不喜勿喷!
关键技术
二维数组的截断和追加是一个抽象的概念,本demo把它实例化,可以给爱偷懒的程序学习者参考,不足之处欢迎拍砖。{删除动态数组指定元素的过程: 参数 arr 是数组名, 参数 Index 是要删除的索引}
procedure TForm1.DeleteArrItem(Index:Integer);
var
j:integer;
begin
if Length(MyProArr)>1 then
begin
for j := Index to Length(MyProArr)-2 do begin
MyProArr[j,0]:=MyProArr[j+1,0];
MyProArr[j,1]:=MyProArr[j+1,1];
end;
setlength(MyProArr,Length(MyProArr)-1,2);
end else
begin
setlength(MyProArr,0,2);
end;
- 2022-11-15 14:10:02下载
- 积分:1
-
用VB实现解常微分方程组
包括定步长四阶龙格
用VB实现解常微分方程组
包括定步长四阶龙格-库塔法、自适应变步长的龙格-库塔法、改进的中点法、外推法等-VB solution of ordinary differential equations including fixed step 4-order Runge- Kutta method, adaptive variable step of the Runge- Kutta method to improve the midpoint of the law, such as extrapolation
- 2022-02-16 09:19:47下载
- 积分:1
-
弦截法――数值分析,程序代码,参考数值分析课本,很简单的程序,大家一定看得懂...
弦截法――数值分析,程序代码,参考数值分析课本,很简单的程序,大家一定看得懂-chord sheet-- numerical analysis code, the numerical analysis of reference books, a very simple procedure, we must understand the
- 2023-07-17 04:10:03下载
- 积分:1
-
Multifractal Calculation
Multifractal Calculation,一个计算多重分形谱的matlab程序
- 2023-08-31 11:05:02下载
- 积分:1
-
永磁同步电机matlab矢量控制算法仿真
自己做的永磁同步电机仿真,采用matlab中的simlink工具,转速电流双闭环控制策略,直轴电流等于0,各种参数已经调试完毕,采用空间矢量PWM调制法,运行正常。
- 2022-08-20 06:11:59下载
- 积分:1
-
等值线插值Pascal程序
等值线插值Pascal程序-contours Pascal interpolation procedures
- 2022-02-01 07:39:22下载
- 积分:1
-
使用奇异值分解算法的prony算法
使用奇异值分解算法的prony算法-single value decomposition based prony algorithm-The use of singular value decomposition Prony algorithm algorithm-single value decomposition based prony algorithm
- 2022-01-24 15:48:30下载
- 积分:1
-
数据挖掘中的CART算法
数据挖掘中的CART算法
-Data Mining in the CART algorithm
- 2022-02-09 14:41:40下载
- 积分:1
-
indices de desempeño
- 2022-02-15 12:52:06下载
- 积分:1
-
在分形几何里面,非常重要的一部分内容就是分形演化算法。这个模块提供的是分形演化的DLA模型。希望对大家有用。...
在分形几何里面,非常重要的一部分内容就是分形演化算法。这个模块提供的是分形演化的DLA模型。希望对大家有用。-Fractal geometry in the inside, a very important part of the content is the evolutionary algorithm fractal. The module is provided by the DLA fractal model of evolution. Hope useful for everyone.
- 2022-06-17 16:58:52下载
- 积分:1