开发者社区 问答 正文

int createBiTree( BiTree &r)这里是什么意思???

结构体定义不是用BiNode来定义的吗?为什么它能用BiTree来定义??
typedef struct BiNode{
string data;
struct BiNode lchild,rchild;
}BiTNode,*BiTree;
string temp;
int flag=0;
int createBiTree( BiTree &r){
flag=0;
cin>>temp;
if(temp.length()==1 && temp[0]=='#') r=NULL ;
else{
flag=1;
}

展开
收起
a123456678 2016-03-20 14:30:19 4719 分享 版权
1 条回答
写回答
取消 提交回答
  • BitTree被typedef定义为指向结构体的指针类型。

    2019-07-17 19:09:39
    赞同 展开评论
问答地址: