&(*T)->firstchild 这个&(*T) 也看不懂,求解释,这个是2叉树的相关函数,只是部分代码而已
typedef struct CSNode
{
int data;
struct CSNode Pfyrstchild,*nextsibling;
}CSNode,*CSTree;
int intTree(CSTree *T)
{
*T=NULL;
return 1;
}
void DestroyTree(CSTree *T)
{
if(*T)
{
if((*T)->firstchild)
DestroyTree(&(*T)->firstchild);
if((*T)->nextsibling)
DestroyTree(&(*T)->nextsibling)
free(*T);
*T=NULL;
}
}
呼如林
温温酱
达令说
随时随地看视频慕课网APP