typedef int item;
typedef node* Node;
typedef struct _node {
item value;
Node next;
} node;
typedef struct _stack {
Node first;
} stack;
The issue I'm having is that my struct "node" and my typedef "Node" are sort of interdependent, so if I define "node" first, the compiler freaks out (DynamicStack.c:13: error: expected specifier-qualifier-list before 'Node'), but if I define "Node" first, the compiler has a different freakout.
How should I order these definitions?

New Topic/Question
Reply



MultiQuote






|