【求助】写头文件 定义 常量 出错
#ifndef _SQ_LIST_H
#define _SQ_LIST_H
typedef int ElemType;
typedef int Status;
const int OVERFLOW = -2;
const int OK = 1;
const int ERROR = -1;
const int MAXSIZE = 100;
typedef struct
{
ElemType* elem;
int length;
}SqList;
Status InitList_Sq(SqList& L);
int LocateElem_Sq(const SqList& L, const ElemType& e);
Status ListInsert_Sq(SqList& L, int i, const ElemType& e);
Status ListDelete_Sq(SqList& L, const int& i, ElemType& e);
void ShowList_Sq(SqList& L);
Status DestoryList_Sq(SqList& L);
inline Status ClearList_Sq(SqList& L);
inline int ListLength_Sq(const SqList& L);
Status IsEmpty_Sq(SqList& L);
inline int GetElem(const SqList& L, const int& i);
void MergeList(SqList& LA, const SqList& LB);
void MergeList_Sq(const SqList& LA, const SqList& LB, SqList& LC);
int MinElem_Sq(SqList& LA);
#endif
warning C4091: “”: 没有声明变量时忽略“const int”的左侧
error C2143: 语法错误 : 缺少“;”(在“常量”的前面)
error C2059: 语法错误:“常量”