100分问问题
GR 2003-11-27 10:57:34
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
typedef char ElemType;
typedef struct {
ElemType *elem;
int lenth;
int listsize;
}SqlList,*pSqlList;
pSqlList InitList(pSqlList L)
{
L->elem = (ElemType*)malloc(LIST_INIT_SIZE*sizeof(ElemType));
if(!L->elem)
return 0;
L->lenth = 0;
L->listsize = LIST_INIT_SIZE;
return L;
}
void main()
{
pSqlList LA = InitList(LA);
}
各位.local variable 'LA' used without having been initialized
错误是这样的.