Posted By: metal
struct prototype? - 03/21/10 18:24
hi,
i want to have two structs, each with a pointer to the other struct. is this possible with lite-c?
is there something like a struct prototype?
adding "struct Planet;" as in c++ doesn´t work
i want to have two structs, each with a pointer to the other struct. is this possible with lite-c?
is there something like a struct prototype?
adding "struct Planet;" as in c++ doesn´t work
Code:
typedef struct Starsystem{ Planet* planet1; } Starsystem; typedef struct Planet{ Starsystem* System; }Planet