编译通不过 谁帮改下~

来源:百度知道 编辑:UC知道 时间:2024/05/07 01:57:48
#include<sj.h>
typedef struct
{ ElemType elem[MAXSIZE];
int length;
}SeqList;
void Create_Seqlist(SeqList *L)
{ int i,n,num;
char ss[8];
float score;
printf("Please input Num,Name,Score:\n");
scanf("%d",&n);
L->length=n;
for(i=1;i<=n;i++)
{ printf("please input Num,Name,Score:\n");
scanf("%d",&num);
getchar(); gets(ss);
scanf("%f",&score);
L->elem[i].Num=num;
strcpy(L->elem[i].Name,ss);
L->elem[i].Score=score;
}
}
void Print_SeqList(SeqList *L)
{ int i;
printf("The List is:\n");
for(i=1;i<=L->length;i++)
printf("num=%d,Name=%s,score=%d\n",L->elem[i].Num,L->elem[i].Name,L->elem[i].Score);
}
Status Insert_SeqList(SeqList *L,int i,ElemType x)
{ int j;
if(i<1||i>L->l

你#include <sj.h>是什么?你要把sj.h先给我们啊!
还有,起码你也要包含stdio.h之类的吧。
东西都不全,我们怎么帮你编绎啊!
------------------------------------
楼主,不是我说你,这个程序怕不是你写的吧。或者你写了根本就没有在编绎器里调试过。错的太离谱了吧!!!很多都是语法错误!
我在编绎器你大概给你调了一下。调通了,不过程序逻辑上还有点问题。只有几个功能正常使用。
-------------------------------------
你要想要程序,发纸条给我。我白天都在线。
Cpp9.cpp.