#include <stdio.h>
void ListInsert (SqList *L,int i,ElemType e)
{
int j;
if(L->lengh == MAXNUM) {printf(‘List is full’);return ;} //1)合法性判断
if(i>L->lengh+1|| i<1) {printf(‘Error’);return ;}
for( j = L->length-1; j >= i; j--){
L->data[ j+1 ] = L->data[ j ];} //2)从后面开始移动结
//点,腾空位置
L-> data[ i-1 ] = e; //3)在腾空的位置处,放入新的元素
L->length++; //4)数组长度加一
}
int main () {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
printf("Hello JSRUN! \n\n - from C .");
return 0;
}