链表的定义

1
2
3
4
5
6
7
8
9
10
11
//链表的定义:
#include<stdio.h>
#include<stdlib>
#define LEN sizeof(struct node)
#define NULL 0
typedef int datatype;
typedef struct node
{
    datatype data;
    struct node *next;
}linklist;