- 1
- 0
- 约2.38千字
- 约 3页
- 2019-07-02 发布于江西
- 举报
#includeiostream
using namespace std;
templateclass T
struct TBtnode
{
T d;
int lflag;
int rflag;
TBtnode *lchild;
TBrnode *rchild;
};
templateclass T
class InTBinaryTree
{
private:
TBtnodeT *BT;
public:
InTBinaryTree() {BT=NULL;return;}
void CreateBinaryTree(T);
void CreateInTBinaryTree();
void InTTree();
};
templateclass T
void InTBinaryTreeT::CreateBinaryTree(T end)
{
TBtnodeT *p;
T x;
cinx;
if(x==end) return;
p=new TBtnodeT;
p-d=x;p-lchild=NULL;p-rchild=NULL;p-lflag=0;p-rflag=0;
BT=p;
Create(p,1,end);
Create(p,2,end);
return;
}
templateclass T
static Create
您可能关注的文档
最近下载
- 2023一级建造师考试题库含答案【培优b卷】.docx
- 2025年药师职业资格考试妊娠期与哺乳期用药习题库.doc VIP
- 2023年(劳务员)基础知识题库及答案【精选题】.docx
- 最新苏教版小学数学二年级上册口算试题(全套).pdf VIP
- 2023年初级管理会计《专业知识》题库500道【学生专用】.docx
- 2023年初级管理会计《专业知识》题库附参考答案(满分必刷).docx
- 老旧小区燃气改造施工组织设计方案.docx
- 寄生虫学英文课件:2experimental lecture of cestode1.ppt VIP
- 2023年初级管理会计《专业知识》题库附参考答案(考试直接用).docx
- 数控龙门加工中心HTMG标准机.pdf VIP
原创力文档

文档评论(0)