登录
首页 » 算法 » 2维数组 截断 追加 测试

2维数组 截断 追加 测试

于 2022-11-15 发布 文件大小:10.08 kB
0 142
下载积分: 2 下载次数: 1

代码说明:

应用背景 二维数组的截断和追加并不像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;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Matlab routines
    matlab 例程-Matlab routines
    2022-03-01 18:56:43下载
    积分:1
  • under Windows using Fast Fourier changes, the screen
    用Windows 下实现快速傅立叶变化,显示在屏幕-under Windows using Fast Fourier changes, the screen
    2022-04-20 03:54:26下载
    积分:1
  • 程序可以处理远程射击和distnac阅读MDL激光器输出…
    Program can deal with MDL lasers for remote firing and reading output of distnace
    2022-06-11 12:52:28下载
    积分:1
  • qt 调用类
    应用背景   在qt环境下,先写了类,类中包含构建函数和减法函数。然后再写另一个主函数,来调用    这个类中的函数,如果调用成功,就会返回调用成功结果。                                                                                                                                                                                                                                                            
    2023-08-18 10:20:03下载
    积分:1
  • 2022-07-22 23:57:23下载
    积分:1
  • used to 计p0点到直线p1p2的距离
    used to 计算p0点到直线p1p2的距离-p0 points used to calculate the straight-line distance p1p2
    2022-02-05 14:58:10下载
    积分:1
  • CCP-CCANS NS2
    CCANS-CCP的ns2源代码
    2022-03-07 15:08:13下载
    积分:1
  • 自动谱分析:可用于丢失/采样/子束光谱分析;矢量自动迭代,可用于建模,故障诊断;...
    自动谱分析:可用于丢失/采样/子束光谱分析;矢量自动迭代,可用于建模,故障诊断;-The applications of this additional toolbox are: - Automatic spectral analysis for Irregular sampling/Missing data, analysis of spectral subbands, - Vector Autoregressive modeling and Detection [uses ARMASA] - Reduced statistics ARMAsel: A compact yet accurate ARMA model is obtained based on a given power spectrum. Can be used for generation of colored noise with a prescribed spectrum. - ARfil algorithm: The analysis of missing data/irregularly sampled signals - Subband analysis: Accurate analysis of a part of the power spectrum - Detection: Generally applicable test statistic to determine whether two signals have been generated by the same process or not. Based on the Kullback-Leibler index or Likelihood Ratio. - Analysis of segments of data, possibly of unequal length.
    2022-03-04 02:22:26下载
    积分:1
  • 常用的C程序。主要内容包括多项式的计、复数运、随机数的产生、矩阵运、矩阵特征值与特征向量的计、线性代数方程组的求解、非线性方程与方程组的求解、插值与
    常用算法的C程序。主要内容包括多项式的计算、复数运算、随机数的产生、矩阵运算、矩阵特征值与特征向量的计算、线性代数方程组的求解、非线性方程与方程组的求解、插值与逼近、数值积分、常微分方程组的求解、数据处理、极值问题的求解、数学变换与滤波、特殊函数的计算、排序和查找。-Commonly used algorithm of C procedures. Include polynomial terms, complex computation, random number generation, matrix operations, matrix eigenvalue and eigenvector calculations, linear algebra equations, nonlinear equations with the equations, interpolation and approximation, numerical integration, solving ordinary differential equations, data processing, for solving extremum problems, mathematical transformation and filtering, the calculation of special functions, sorting and search.
    2022-02-26 02:05:02下载
    积分:1
  • C++登录注册系统
    C++开发 实现登录 注册功能 USER user[Max]; char Admin[20]="administrator"; int count; int chance; void menu(); void User_admin(char name[],char pw[]); void User_common(char name[],char pw[]); void Saved(); int flag; void Inithtable() { for(int i
    2022-02-26 15:34:43下载
    积分:1
  • 696516资源总数
  • 106432会员总数
  • 11今日下载