#include#define MAX 20typedef int ElemType;struct SqListElemType dataMAX;int length;void Initial(SqList *L-length=0;void InsertList(SqList *L-dataL-length-1=e;void input(SqList *InsertList(L,e);void displayList(SqList *while(p!=0)coutdatakxy;int k=y-1,d=x;while(d!=L-length-1)L-datad=L-datak;d+;k+;L-length=L-length-(y-x)+1;void main()SqList *L;Initial(L);input(L);displayList(L);DelList(L);coutendl“删除后为: “endl;displayList(L);