illegal use of this type as an expressioninit_LinkList(&head);head=LinkList *CreateList(ElemType *a,int n);说这个不合法,为什么呢?see declaration of 'LinkList'typedef struct linkList{ElemType data;struct linkList *next;}LinkList;

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 12:56:08
illegal use of this type as an expressioninit_LinkList(&head);head=LinkList *CreateList(ElemType *a,int n);说这个不合法,为什么呢?see declaration of 'LinkList'typedef struct linkList{ElemType data;struct linkList *next;}LinkList;
xR]OA}'Ro" BnD b]ʹLgMŝ,%Ƥ&$93 I`Mj~w;^ͤEAN)4ÈCD031=j2no:f_

illegal use of this type as an expressioninit_LinkList(&head);head=LinkList *CreateList(ElemType *a,int n);说这个不合法,为什么呢?see declaration of 'LinkList'typedef struct linkList{ElemType data;struct linkList *next;}LinkList;
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;

illegal use of this type as an expressioninit_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*,那是定义和声明的时候才加的.

illegal use of this type as an expression错误。哪位大侠能帮帮忙。小弟非常感激。 lude "stdlib.h" /*加入这个头文件原因 函数名称: malloc