#include<stdio.h>
#include<string.h>
#define MAXSIZE 100
#define OK 1
#define ERROR 0
#define ElemType int
typedef int Status;
//typedef ElemType *SqList;
typedef ElemType *LinkList;
typedef struct
{
ElemType *elem;
int length;
}SqList;//定义顺序表
typedef struct LNode
{
ElemType data;
struct LNode next;
}LNode,LinkList;//定义单链表
Status InitList_Sq( SqList &L){
//构造一个的线性表
L.elem = (ElemType)malloc LIST_INIT_SIZEsizeof(ElemType);
//给线性表开辟一个一维数组的空间
If (!L.elem) exit(OVERFLOW);
L.Length=0;
L.listsize =LIST_INIT_SIZE;
Return OK;
}//构建
错误如下error C2371: 'LinkList' : redefinition; different basic types