Home > Back-end >  How to deal with this
How to deal with this

Time:10-08

Typedef struct LinkedNode {
DataType data;
Struct LinkedNode * prev.
Struct LinkedNode * next;
} LinkedNode;//the node

Typedef struct LinkedList {
int length;/* the length of the list */
LinkedNode * head;/* */of bidirectional circular linked list of nodes
} LinkedList.
The above is subject to
The following is my
LinkedNode * alloc_node ()//distribution node
{
LinkedNode * L;
L=(LinkedNode *) malloc (sizeof (LinkedNode));
Return the L;
}
Void init_list (LinkedList * list)//initialization list
{
The list - & gt; The head=alloc_node ();
The list - & gt; The head - & gt; Next=list - & gt; The head;
The list - & gt; The head - & gt; Prev=list - & gt; The head;
The list - & gt; Length=0;
}
Void init_list (LinkedList * list) will have problems first statement
This is the bug report (0 x000000000040156c & lt; + 28 & gt; : mov 0 x10 (RBP) %, % rax)
Ask, help children
  • Related