level 4
小白来编程
楼主
/data/user/0/com.n0n3m4.droidc/files/temp.c:4: error: ',' expected (got "*")
大佬,哪里错了
刚开始学
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
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;
}
void main()
{
SqList H;
int s;
s=InitList_Sq(H);
printf("1代表成功%d",s);
}
2018年06月02日 09点06分
1
大佬,哪里错了
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
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;
}
void main()
{
SqList H;
int s;
s=InitList_Sq(H);
printf("1代表成功%d",s);
}