向大佬求助,初学数据结构在顺序表的初始化和取值里遇到Status does not name a type怎么办?代码如下:#define MAXSIZE 10000
typedef struct
{
char no[20];
char name[50];
float price;
}Book;
typedef struct
{
Book *elem;
int length;
}SqList;
Status IninList(SqList &L)
{
L.elem=new ElemType[MAXSIZE];
if(!L.elem) exit(OVERFLOW);
L.length=0;
return OK;
}
Status GetElem(SqList L,int i,ElemType &e)
{
if(i<1||i>L.length)return ERROR;
e=L.elem[i-1];
return OK;
}情况如图: