- 博客(2)
- 收藏
- 关注
转载 创建一个最简单的链表,插入和删除
创建一个链表 一、头插法创建链表: #include <stdio.h> struct list { int num; struct list *next; }; typedef struct list list_single; list_single *creat_list_tail(int n)//尾插法创建一个链表,并返回一个头指针 { int i=0; list_single *head,*rear,*node; head=(list_single *)malloc(s
2021-05-20 17:51:47
187
原创 位置式PID和增量式PID
#1.位置式PID typedef struct { float Kp; //比例系数Proportional float Ki; //积分系数Integral float Kd; //微分系数Derivative float Ek; //当前误差 float Ek1; //前一次误差 e(k
2021-05-18 17:25:42
1173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅