The head and tail go in ListType.
Code:typedef struct Node { MovieType *data; struct Node *prev; struct Node *next; } NodeType; typedef struct{ Node *head; Node *tail; int nextId; } ListType;
The head and tail go in ListType.
Code:typedef struct Node { MovieType *data; struct Node *prev; struct Node *next; } NodeType; typedef struct{ Node *head; Node *tail; int nextId; } ListType;
A little inaccuracy saves tons of explanation. - H.H. Munro