-
电影票
图书馆管理系统 C+ + * 递归程序为线性搜索 * /#includeint 线性 (int [],int,int) ;无效的主要 (){int a [20],pos = 1,n,k,我 ;clrscr() ;printf ("nEnter n 值:") ;scanf ("%d",& n) ;printf ("nEnter 元素的数组:") ;为 (我 = 0 ; 我 < n; i + +)scanf ("%d"& a[i]) ;printf ("n 输入要搜索的元素:") ;scanf ("%d"& k) ;pos=linear(a,n,k) ;if(pos!=-1)printf ("n 搜索成功,发现位置 %d 处的元素",pos) ;其他printf ("搜索失败,找不到元素") ;残培 () ;}int 线性 int k int n int []){int ;为 (我 = n-1 ; 我 > = 0; 我 — —){if(a[i]==k)return(i) ;其他{n = n-1 ;return(linear(a,n,k)) ;}}返回-1 ;}
- 2022-02-02 00:00:53下载
- 积分:1
-
基于粒子群算法的PID控制器
粒子群算法与 Simulink 模型之间连接的桥梁是粒子(即 PID 控制器参数)和该粒子对应的适
应值(即控制系统的性能指标)。优化过程如下:PSO 产生粒子群(可以是初始化粒子群,也可以是更新后的粒子群),将该粒子群中的粒子依次赋值给 PID 控制器的参数 Kp、Ki、Kd,然后运行控制系统的Simulink 模型,得到该组参数对应的性能指标,该性能指标传递到 PSO中作为该粒子的适应值,最后判断是否可以退出算法。
- 2023-03-31 13:00:03下载
- 积分:1
-
自己编写的,1024点快速傅里叶变换、倒频谱分析、功率谱分析及其Applet曲线显示程序源代码。 说明清楚,附有验证使用的数据文件...
自己编写的,1024点快速傅里叶变换、倒频谱分析、功率谱分析及其Applet曲线显示程序源代码。 说明清楚,附有验证使用的数据文件-themselves prepared in 1024 point fast Fourier transform, cepstrum analysis, power spectrum analysis and Applet curve shows the source code. Make it clear with the use of the test data files
- 2023-08-21 00:10:04下载
- 积分:1
-
八数码多个算法
八数码多个算法-more than eight digital algorithm
- 2023-02-03 09:30:04下载
- 积分:1
-
Gauss column principle eliminate for bankdialog systems
Gauss column principle eliminate for bankdialog systems
- 2022-04-30 16:38:20下载
- 积分:1
-
数值分析中的循环赛程表问题,程序中含有运动员人数输入界面,在界面中可进行运动员人数的输入。...
数值分析中的循环赛程表问题,程序中含有运动员人数输入界面,在界面中可进行运动员人数的输入。-Numerical analysis of the issue cycle calendar, the program contains a number of athletes input interface, the interface can input the number of athletes.
- 2022-07-12 07:38:00下载
- 积分:1
-
菜单 com teclado matricial 3 x 4 e pic
埃斯特角 projeto mostra 科摩 usar um teclado matricial 3 x 4 com pic 没有 ccs,criação de ilustra um 菜单 de opções usando (开关箱) 段控制 de motores de 帕苏、 com 帕苏 completo、 微帕苏等
- 2023-08-01 12:40:03下载
- 积分:1
-
Adaptive and Robust control theory
Adaptive and Robust control theory
- 2023-08-29 01:35:06下载
- 积分:1
-
点集凸包Gram扫描法 c++程序
点集凸包Gram扫描法 c++程序-point set convex hull Gram scanning procedures c
- 2023-06-02 18:35:03下载
- 积分:1
-
追赶法解三对角线方程组
追赶法解三对角线方程组-chased three diagonal Solving equations
- 2022-03-25 06:07:16下载
- 积分:1