在bItem color[3]之前声明subs就行了
#define null 0
typedef struct aItem
{
char * string;
struct aItem * ParentLevel;
struct aItem * ChildLevel;
}bItem;
bItem subs[2];
bItem color[3] =
{
{"black",subs,null},
{"red",subs,null},
{"blue",subs,null}
};
bItem taste[3] =
{
{"bitterness",subs,null},
{"sweet",subs,null},
{"sour",subs,null}
};
bItem subs[2] =
{
{"color",null,color},
{"taste",null,taste},
};
|