#include#define MaxSize 50 using namespace std; typedef struct{ int data[MaxSize]; int length; }SqList; bool ListInsert(SqList &L, int i, int e){ // 插入操作 if(i<1||i>L.length+1) //非法位置 return false; if(L.length==MaxSize) //顺序表满 return false; for(int j=L.length;j>=i;j--){ L.data[j]=L.data[j-1]; } L.data[i-1]=e; L.length++; return true; } void bianli(SqList L){ //遍历操作 for(int i=0;i L.length+1) //非法位置 return false; e=L.data[i-1]; for(int j=i;j



