给顺序表赋值的问题
程序代码:#include<stdio.h>
#include<stdlib.h>
#define OK 1
#define ERROR 0
#define TRUE 1
#define FALSE 0
#define OVERFLOW -2
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
typedef int ElemType;
typedef int Status;
typedef struct
{
ElemType *elem;
int length;
int listsize;
}Sqlist;
Status InitList_Sq(Sqlist *L)
{
L->elem = (ElemType *) malloc (LIST_INIT_SIZE * sizeof(ElemType) );
if(!L->elem) exit( OVERFLOW );
L->length=0;
L->listsize = LIST_INIT_SIZE;
return OK;
}
int main(void) {
Sqlist A;
InitList_Sq(&A);
}请问一下各位大人,我该怎样给线性表A赋值啊
这个问题其实在C语言吧看到的,但是回答的人解释不是明白,故向各位大侠求助。我刚学数据结构







