张乃孝版的数据结构课本课件讲解代码travelTree.c.doc
/*travalTree.c*/ /*树的周游*/ /*本程序用于讲义中上机时请根据树的表示方式作相应的修改*/ /*按先根次序周游树的递归算法*/ void preOrder( Tree t ) { Tree c; if (t==NULL) return; visit( root(t) ; c = leftChild ( t ; while (c!=NULL){ preOrder ( c ; c
下载地址
用户评论