int InsElem(SqList &sq,ElemType x,int i) /*插入元素*/{int j;if (i<1 || i>sq.length+1) /*无效的参数i*/return 0;for (j=sq.length;j>i-1;j--) //这里sq.data[j]=sq.data[j-1];sq.data[i-1]=x; /*在位置i处放入x*/sq.length++; /*线性表长度增1*...