编辑代码

#include <stdio.h>
#include<malloc.h>
#define MAXSIZE 100
typedef int ElementType;
typedef struct LNode *List;
struct LNode{
    ElementType Data[MAXSIZE];
    int Last;
};
List L;

void Insert(ElementTye X,int i,List L){
    int j;
    if(L->Last==MAXSIZE-1){
        print("表满");
        return;
    }
    if(i<0||L->Last+1<i){

    }
    for(j=L->Last;j>=i;j--){
        L->Data[j+1]=L->Data[j]
        L->Last++
        return;
    }
}




int main () {
    //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
    printf("Hello world!     - c.jsrun.net.");
    return 0;
}