学渣还有个问题要问你#include#define MaxSize 100typedef int DataType;typedef struct{\x05int list[MaxSize];\x05int size;}Seqlist;void ListInitiate(Seqlist *L){\x05L->size=0;}int ListInsert(Seqlist *L,int i,int x){\x05int j;\x05for(j=L->size;j

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 13:38:47
学渣还有个问题要问你#include#define MaxSize 100typedef int DataType;typedef struct{\x05int list[MaxSize];\x05int size;}Seqlist;void ListInitiate(Seqlist *L){\x05L->size=0;}int ListInsert(Seqlist *L,int i,int x){\x05int j;\x05for(j=L->size;j
xTMK@+4MӦOT!M{6iLZ " DALZavƶw/73]"}p^?ӭ뼭>V/ [Aڰtv]B&xh@ec/!has£S['.Ip B20nsR}f/:F*Š”vRx0&4qbgT]m6љYԤ 3E>z'FP<׍TŷB#曓*QlF2#bFtͿZL0clTfSuZSB) KbȄx`L-ODvaʂ6%[Id!4B8OQ,/Hy?D PvNVָ5/"Hlp\oDo*7|c{!ͦ]BBbՐ3q&獯2~\L]g:wb2T]&.6X

学渣还有个问题要问你#include#define MaxSize 100typedef int DataType;typedef struct{\x05int list[MaxSize];\x05int size;}Seqlist;void ListInitiate(Seqlist *L){\x05L->size=0;}int ListInsert(Seqlist *L,int i,int x){\x05int j;\x05for(j=L->size;j
学渣还有个问题要问你
#include
#define MaxSize 100
typedef int DataType;
typedef struct
{
\x05int list[MaxSize];
\x05int size;
}Seqlist;
void ListInitiate(Seqlist *L)
{
\x05L->size=0;
}
int ListInsert(Seqlist *L,int i,int x)
{
\x05int j;
\x05for(j=L->size;j>i;j--)
\x05\x05L->list[j]=L->list[j-1];
\x05L->list[i]=x;
\x05L->size++;
\x05return 1;
}
int ListDelete(Seqlist *L,int i,int *x)
{
\x05int j;
\x05*x=L->list[i];
\x05for(j=i+1;jsize-1;j++)
\x05\x05L->list[j-1]=L->list[j];
L->size--;
return 1;
}
int ListGet(SeqList *L,int i,int *x)
{
\x05*x=L.list[i];
\x05return 1;
}
void main(void)
{
\x05SeqList myList;
\x05int i,x;
\x05ListInitiate(&mylist);
\x05for(i=0;i

学渣还有个问题要问你#include#define MaxSize 100typedef int DataType;typedef struct{\x05int list[MaxSize];\x05int size;}Seqlist;void ListInitiate(Seqlist *L){\x05L->size=0;}int ListInsert(Seqlist *L,int i,int x){\x05int j;\x05for(j=L->size;j
什么问题.写明一下