文件名称:Follow-upbinarytreetraversal
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 174kb
- 下载次数:
- 0次
- 提 供 者:
- 上***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
上帝王牌:给出先序遍历和中序遍历,求后续遍历,要求:
函数头如下:
bool getPostOrder(const char* perOrder, const char* inOrder, char* postOrder)
返回值是一个布尔 代表是否有这样的二叉树
用法:
char* perorder = "abdgcefh"
char* inorder = "dgbaechf" 或者 char* inorder = "abcde"
char postorder[1000]
if (getPostOrder(perorder, inorder, postorder))
{
print("Post order is s", postorder)
}
else
{
print("No such tree")
}-God trump card, the first order is given, and in order traversal traversal traversal seek follow-up, request: function header is as follows: bool getPostOrder (const char* perOrder, const char* inOrder, char* postOrder) return value is a boolean whether this is representative of binary Usage: char* perorder = " abdgcefh" char* inorder = " dgbaechf" or char* inorder = " abcde" char postorder [1000] if (getPostOrder (perorder, inorder, postorder)) (print (" Post order is s " , postorder) ) else (print (" No such tree " ) )
函数头如下:
bool getPostOrder(const char* perOrder, const char* inOrder, char* postOrder)
返回值是一个布尔 代表是否有这样的二叉树
用法:
char* perorder = "abdgcefh"
char* inorder = "dgbaechf" 或者 char* inorder = "abcde"
char postorder[1000]
if (getPostOrder(perorder, inorder, postorder))
{
print("Post order is s", postorder)
}
else
{
print("No such tree")
}-God trump card, the first order is given, and in order traversal traversal traversal seek follow-up, request: function header is as follows: bool getPostOrder (const char* perOrder, const char* inOrder, char* postOrder) return value is a boolean whether this is representative of binary Usage: char* perorder = " abdgcefh" char* inorder = " dgbaechf" or char* inorder = " abcde" char postorder [1000] if (getPostOrder (perorder, inorder, postorder)) (print (" Post order is s " , postorder) ) else (print (" No such tree " ) )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
求二叉树后序\Debug\StdAfx.obj
............\.....\vc60.idb
............\.....\vc60.pdb
............\.....\求二叉树后序.exe
............\.....\求二叉树后序.ilk
............\.....\求二叉树后序.obj
............\.....\求二叉树后序.pch
............\.....\求二叉树后序.pdb
............\ReadMe.txt
............\StdAfx.cpp
............\StdAfx.h
............\求二叉树后序.cpp
............\求二叉树后序.dsp
............\求二叉树后序.dsw
............\求二叉树后序.ncb
............\求二叉树后序.opt
............\求二叉树后序.plg
............\Debug
求二叉树后序
............\.....\vc60.idb
............\.....\vc60.pdb
............\.....\求二叉树后序.exe
............\.....\求二叉树后序.ilk
............\.....\求二叉树后序.obj
............\.....\求二叉树后序.pch
............\.....\求二叉树后序.pdb
............\ReadMe.txt
............\StdAfx.cpp
............\StdAfx.h
............\求二叉树后序.cpp
............\求二叉树后序.dsp
............\求二叉树后序.dsw
............\求二叉树后序.ncb
............\求二叉树后序.opt
............\求二叉树后序.plg
............\Debug
求二叉树后序