2 qq 40262801 qq_40262801 于 2017.09.16 01:14 提问

syntax error : '<end Parse>'

template
enum StatusCode { SUCCESS,FAIL,UNDER_FLOW,OVER_FLOW,RANGE_ERROR,DUPLICATE_ERROR,NOT_PRESENT,ENTRY_INSERTED,ENTRY_FOUND,VISITED,UNVISITED};
class SqList
{
protected:
int count;
int Maxsize;
elemType *elems;
bool Full() const;
void Init(int size);
public:
SqList(int size=DEFAULT_SIZE);
virtual~SqList();
int length() const;
bool Empty() const;
void Clear();
void Traverse(void (*Visit)(const elemType&)) const;
StatusCode GetElem(int position,elemType&e) const;
StatusCode SetElem(int position,elemType&e) const;
StatusCode Delete(int position,elemType&e) const;
StatusCode Insert(int position,elemType&e) const;
SqList(const SqList&copy);
SqList&operator=(const SqList&copy);
};

error C2059: syntax error : ''
初学者,在看C++数据结构,然后把上面的代码在VC++6.0,提示错误,就是enum那一行,是什么原因?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!