1. 首页
  2. 移动开发
  3. 其他
  4. 数据结构第6章树练习.doc

数据结构第6章树练习.doc

上传者: 2020-12-12 10:42:33上传 DOC文件 163.5KB 热度 13次
void PreOrder_Nonrecursive(Bitree T)//先序遍历二叉树的非递归算法 { ?InitStack(S; ?Push(S,T; //根指针进栈 ?while!StackEmpty(S) ?{ ?while(Gettop(S,p&p) ?{ ?visit(p->data; ?push(S,p->lchild; ?} //向左走到尽头 ?pop(S,p; ?if!Stac
下载地址
用户评论