-
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
-
用C编写的一些math函数
用C编写的一些math函数-prepared by the math function
- 2023-06-14 06:20:04下载
- 积分:1
-
文件1.txt,2.txt,3.txt和5.txt为用Fortran编写的有限元程序 4.txt为用c++编写的钢筋混凝土异形柱的全过程非线性分析源程序...
文件1.txt,2.txt,3.txt和5.txt为用Fortran编写的有限元程序 4.txt为用c++编写的钢筋混凝土异形柱的全过程非线性分析源程序-document 1.txt, 2.txt, 3.txt and 5.txt Fortran prepared for the use of the finite element program 4.txt to use C++ to prepare the R.C.special-the whole process of nonlinear analysis source
- 2022-08-18 18:12:35下载
- 积分:1
-
粒子滤波目标跟踪
这是一个高功能的目标跟踪程序。 实现了背景变换下的目标跟踪。(摄像头什么的可以转了)但是相对的, 对系统的资源要求也非常的高。
- 2022-09-10 23:00:04下载
- 积分:1
-
bbp algorithm for calculating pi accurate to more than 10 million
bbp算法计算圆周率精确到千万位以上-bbp algorithm for calculating pi accurate to more than 10 million
- 2022-03-09 12:38:14下载
- 积分:1
-
c常用算法的实现经典代码。
c常用算法的实现经典代码。 -c commonly used algorithm for the realization of the classical code.
- 2022-10-02 09:45:03下载
- 积分:1
-
In this paper, the Monte Carlo method to equation y = sin (x)+ X with the equati...
本文采用蒙特卡洛方法,将方程y=sin(x)+x与方程y=cos(x)+x之间的曲线包络面积求解出来。-In this paper, the Monte Carlo method to equation y = sin (x)+ X with the equation y = cos (x)+ X between the envelope curve out an area to solve.
- 2022-01-25 23:23:06下载
- 积分:1
-
大整数
计及任意大整数单元-受支持的操作:分配、 加、 减、 乘、 鸿沟,模相比,阶乘(限于运行时的最大整数的阶乘将可能限制它对少得多)所有操作都是 TInteger 类的方法和替换的值与结果。对于二进制运算 (除了阶),第二个操作数是作为一个参数传递给该过程。
- 2022-03-21 19:32:39下载
- 积分:1
-
二进制搜索 java 代码
导入 java.util.* ;类 BinarySearch{int [] ;无效的 get){扫描仪 sc = 新的 Scanner(System.in) ;System.out.println ("输入 no。元素") ;= 新 int[sc.nextInt()] ;System.out.println ("输入元素") ;为 (int 我 = 0 ; 我 < a.length;i++)a[i]=sc.nextInt() ;}int binarySearch (int n){int 低 = 0 ;int high=a.length-1 ;虽然 (低 < = 高){int 中期 =(low+high)/2 ;if(a[mid]==n)返回 (中期) ;if(n = 1 & & a [j-1] > t; j — —)[j] = [j-1] ;[j] = t ;}}空 display(){System.out.println ("给定的列表是") ;为 (int 我 = 0 ; 我 < a.length;i++)System.out.print ([i] +"") ;System.out.println() ;
- 2023-01-30 23:10:03下载
- 积分:1
-
二
二维的FDTD仿真程序,仿真图像很漂亮哦,呵呵。-Two-dimensional FDTD simulation procedures, simulation images very beautiful, oh, huh, huh.
- 2023-02-22 14:10:04下载
- 积分:1