G:\c语言\第一次试验.cpp(33) : error C2296: '*' : illegal, left operand has type 'int *'
G:\c语言\第一次试验.cpp(33) : error C2296: '*' : illegal, left operand has type 'int *'
日期:2021-05-24 04:43:12 人气:1
newbase = (ElemType *)realloc(L.elem,(L.listsize + LISTINCREMENT) ) * sizeof(ElemType);
括号加错位置了吧,应该为
newbase = (ElemType *)realloc(L.elem,(L.listsize + LISTINCREMENT) * sizeof(ElemType));
括号加错位置了吧,应该为
newbase = (ElemType *)realloc(L.elem,(L.listsize + LISTINCREMENT) * sizeof(ElemType));