二叉树的构造、遍历

二叉树的构造、遍历//2008.04.12#include<stdio.h>#include<iostream>using namespace std;struct binaryTreeNode{ char data; struct binaryTreeNode *lefttree,*righttree;};typedef struct binaryTreeNode BinaryTree;char ch=' ';void CreateTree(BinaryTree *&amp;tree){ if(ch!='\n') { ch=getchar(); if(ch=='\n') ...
默认分类 | 2008-04-27 17:43 | 阅读 2972 次 | 评论 0 条
文章分类