数据结构-单链表和顺序表的基本操作
单链表#include<stdio.h>#include<stdlib.h>#include<time.h>#include<malloc.h> #define N 8 //最大节点数//定义结构体typedef struct node{ int n; struct node *next;}Node;//释放链表所有结点void freeAll(Node *p){ Node *q; w