typedef struct Elemtype{
int data;
char ch;
}Elemtype;
typedef struct qList{
Elemtype* e;
int Length;
int listsize;
}qList
void delete(qList* L,int i){
Elemtype p;
if(i<1||i>=L->Length)
printf("%s","overflow");
else{
p=L->e[i-1];
if(i==L->Length-1)
{
L->Length--;
}
else{
for(j=i-1;j<L->Length-1;j++)
L->e[j]=L->e[j+1];
L->Length--;
}
}
}
void insert(qList* L,int i,Elemtype e)
{
Elemtype *p;
if(i<1||i>L->Length)
printf("%s","overflow");
else
{
p=&(L->e[i-1]);
for(int j=L->Length;j>=i-1;j--)
L->e[j]=L->e[j-1];
*p=e;
L->Length++;
}
}