I have a problem with 2 structures in a project of mine. My llNode structure has an ArrayQueue structure in it, but the ArrayQueue structure contains pointers to other llNodes. For me to use llNode pointers in my ArrayQueue, i used a typedef at the beginning, but it won't work because llNode isn't defined at that point.
My code is below. Any help is greatly appreciated.
Code:typedef llNode* arrEntry; typedef struct arrayqueue { //Structure for a queue of a locations' connections int front; int back; int size; arrEntry* array; } ArrayQueue; typedef struct llnode { //Structure for a linked list node containing location info string name; int x, y; arrayqueue roads; struct llnode* next; } llNode;