I am creating a linked list which links a struct of data together. However, this is my problem, if I declare struct Node first then the Event type wont exist, but if I declare struct Event first then nodePtr wont exist....im kinda stuck here as to how I should declare them.
struct Event
{
void addEvent();
tm startTime, endTime;
string eventItem;
string eventNotes;
char allDay;
nodePtr head, tail;
};
struct Node
{
Event eventNode;
Node *next;
};
typedef Node* nodePtr;