构建简单的二叉树(C)
摘要:
#include "stdafx.h"#include "stdlib.h" #include "stdio.h" struct tree{char info;struct tree *left;struct tree *right;};struct tree*root;void print_tree(struct tree *r,int l);struct tree *stree(struct tree *root,struct tree *r,char info){if(!r){r=(struct tree*)malloc(siz 阅读全文
posted @ 2012-02-20 14:17 Mayvar 阅读(406) 评论(0) 推荐(1) 编辑