#include
#include
#define OK 1
#define OVERFLOW 0
#define LIST_NIT_SIZE 100
#define LISTINCREMENT 10
typedef struct
{
char elem;
int length; //当前长度
int listsize; //线性表的长度
}SqList;
int InitList(SqList &L)//线性表初始化
{
L.elem=(char)malloc(LIST_NIT_SIZE*sizeof(char))
if(!L.elem)
exit(OVERFLOW);
L.length=0;
L.listsize=LIST_NIT_SIZE;
return OK;
}
你到底要问啥???