int array[MAX];//顺序表int p;//当前位置void insert(int e,int i){ if(i>p) array[i]=e; else { for(int x=p;x>i;x--) array[x+1]=array[x]; array[i]=e; }}