【发布时间】:2019-04-27 13:47:18
【问题描述】:
在声明要在我的代码中使用的一些结构时,我需要帮助。这个想法是我需要声明一些相互包含的结构并使用 typedef 来拥有良好的编码风格。
我已尝试声明这些:
typedef struct cell
{
T_Tree list_of_sons;
struct cell *next;
}ListCell, *T_List, **Adr_List;
typedef struct node
{
int value;
T_List list;
}Node, *T_Tree;
它不起作用,因为之前没有声明类型“T_Tree”,但我想找到一种方法来声明它们,同时保持上面显示的类型定义。
【问题讨论】: