插入求解
#include "stdafx.h"
#include"stdio.h"
#include"jiguot.h"
#include"malloc.h"
#include"stdlib.h"
#define N 5
Status ListInitList_Sq(SqList &L, int i, ElemType e);
Status InitList_Sq(SqList &L);
int _tmain(int argc, _TCHAR* argv[])
{
int a[N],c,x,i=0;
SqList L;
for(c=1;c<N;c++)
{
scanf("%d",&a[c]);
}
printf("请输入插入的位置,插入的数:\n");
scanf("%d\n%d",&i,&x);
ListInitList_Sq(L, i, x);
printf("%d",a[c]);
int m;
scanf("%d",&m);
return 0;
}
结果 不对 求教