illegal use of this type as an expression
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 14:59:56
illegal use of this type as an expression
init_LinkList(&head);
head=LinkList *CreateList(ElemType *a,int n);说这个不合法,为什么呢?
see declaration of 'LinkList'
typedef struct linkList
{
ElemType data;
struct linkList *next;
}LinkList;
init_LinkList(&head);
head=LinkList *CreateList(ElemType *a,int n);说这个不合法,为什么呢?
see declaration of 'LinkList'
typedef struct linkList
{
ElemType data;
struct linkList *next;
}LinkList;
CreateList这个函数定义了没有?如果声明并定义了,就直接用
head = CreateList(ElemType *a,int n);
不要加 LinkList*,那是定义和声明的时候才加的.
再问: 改了后还有几个错误 missing ')' before 'type' too few actual parameters '=' : incompatible types syntax error : ')'
再答: 啊,忘了,应该是 head = CreateList(a,n);
再问: 还是说不兼容的类型
head = CreateList(ElemType *a,int n);
不要加 LinkList*,那是定义和声明的时候才加的.
再问: 改了后还有几个错误 missing ')' before 'type' too few actual parameters '=' : incompatible types syntax error : ')'
再答: 啊,忘了,应该是 head = CreateList(a,n);
再问: 还是说不兼容的类型
illegal use of this type as an expression是什么意思?
illegal use of this type as an expression
c语言错误:'FILE' :illegal use of this type as an expression这是神马情
error C2275:'STU' :illegal use of this type as an expression
运行后说error C2275:'list' :illegal use of this type as an expre
报错c(179) :error C2275:'LNODE' :illegal use of this type as a
程序为何会显示 illegal use of type 'void'
illegal start of expression是什么意思
Use the properties of logarithms to expand the expression as
英语翻译An artificial relationship of this type would provide ma
illegal expression是什么错误?pascal
we use this set of keys for ____ (type)用所给单词适当形式填空