帮忙解释一下,还有应该怎么处理啊!谢谢啊

来源:百度知道 编辑:UC知道 时间:2024/06/23 14:17:15
#include <iostream>
#include <new>

using namespace std;
enum Status{OK, ERROR};
typedef struct
{
int a[10];
}INT;
typedef struct
{
EType data;
ChainNode *link;
}ChainNode;
typedef struct
{
HeadEYpe Hdata;
ChainNode *first;
}ChainList;
void creat(ChainList &L)
{
L=new ChainList;
L→first=NULL;
}
void output(ChainList *L)
{
ChainNode *current=L→first;
while(current)
{
cout<<current→data<<" ";
current=current→link;
}
Status Insert(ChainList &L,int k,EType &x)
{
if(k<0) return ERROR;
ChainNode *current=L→first;
for(index=1;index<k-1&¤t;index++)
current=current→link;
if(k>0&&!current> return ERROR;

typedef struct
{
EType data;
ChainNode *link;
}ChainNode;//这里有错,;是中文的分号,应该用;

字符有问题,你在出错的哪行,把代码在手工按原来的敲一遍