#include<stdio.h>
#include<stdlib.h>
typedef int status;
typedef int Elemtype;
typedef struct LNode {//结点
int data;
struct LNode* next;
}*Link,*Position;
typedef struct {//链表
Link head, tail;
int len;
}LinkList;
//产生一个结点
status makenode(int e) {
Link p = (Link)malloc(sizeof(struct LNode));//分配结点
p->data = e;
p->next = NULL; //指针域为空
return p;
}