单向动态链表的增,减,删,查
#小白又怎么样-----单向动态链表的增,减,删,查
具体代码如下;
对于其中的四种链表的处理方式我觉得有必要熟悉于心!!!!!
#include<stdio.h>
#include<stdlib.h>
typedef struct person//定义结构体
{
int num;
struct person *next;
}PT1;
PT1*creat()
{
PT1 *head,*p1,*p2;
head=(PT1*)malloc(sizeof(PT1));//开辟头节
原创
2021-11-05 20:30:45 ·
116 阅读 ·
0 评论