二叉树的指针和地址看的真难受,各种问题。
*&
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include "string.h"
#define num 100
using namespace std;
typedef char datatype;
typedef struct BinTNode{
BinTNode *lchild;
BinTNode *rchild;
char data;
}BinTNode,*BinTree;
//按层输入 ABC@D@F@@E#
void CreateBinTree(BinTree &bt)
{
BinTNode *Q[num];
BinTNode *s;
int parent,child;
char ch;
ch=getchar();
bt=NULL;
parent=1;
child=0;
while(ch!=