• 2022-06-19
    假设树的存储结构采用孩子兄弟表示法,写出树的先序遍历算法。该算法的函数头为:voidPreOrderTree(),树的孩子兄弟表示法数据类型定义为:typede{structtnode{DataTypedata;structtnode*firstchilcl,*nextsibling;}TNode,*Tree;