#include<stdio.h>
#include<malloc.h>
typedef int items;
typedef struct cell {
items data;
struct cell* next;
}celltype;
typedef celltype* pcelltype;
pcelltype top, rear;
void push(items x) {
pcelltype p;
p = (pcelltype)malloc(sizeof(celltype));
p->data = x;
p->next = top;
top = p;
}
【C语言】创建单向链表
最新推荐文章于 2023-03-14 23:00:33 发布