#include
#include
#include
#define INIT_SIZE 100 //线性表储存空间的初始分配量
#define INCREMENT 10 //线性表储存空间的分配增量
typedef struct
{
char sname[9];
int score;
}student;
typedef student ElemType;
typedef struct
{
ElemType*elem;
int length;
int listsize;
}SqList;
void menu();
int InitList_Sq(SqList *L)
{
L->elem=(ElemType *)malloc(INIT_SIZE*sizeof(ElemType));
if(!L->elem) return 0;
L->length=0;
L->listsize=INIT_SIZE;
return 1;
}
//插入
int ListInsert_Sq(SqList *L,int i,ElemType e)
{
int j;
ElemType *newbase;
if(i<0 || i>L->length) return 0;
if(L->length>=L->listsize)
{
newbase=(El



