#include<iostream>
using namespace std;
#define MAX_SIZE 100
#define EORROR 0
#define OK 1
typedef int Elem_Type;
typedef int Status;
typedef struct sqlist
{
Elem_Type n = 0;
Elem_Type Elem_array[MAX_SIZE];
size_t length=0;
}SqList;
Status Init_SqList(SqList *L)
{
L->Elem_array = (Elem_Type*)malloc(MAX_SIZE*sizeof(Elem_Type)); \\这里有错
if (!L->Elem_array)
{
L->length = 0;
return OK;
}
else
return EORROR;
}
HUX布斯