typedef struct _Node
{
struct _Containter *parent;
struct _Node *next;
struct _Node *prev;
char *Data;
} Node;
typedef struct _Container
{
struct _Node *parent;
struct _Container *next;
struct _Container *prev;
struct _Node *children;
char *Data;
} Container;
In the above example, A Node structure references a Container structure and a Container structure references a Node structure.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment