主题:这个程序 用先序输进中序输出 怎么有错啊
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#define MAX 20
#define NULL 0
typedef struct BTNode
{
char data;
struct BTNode *lchild,*rchild;
}BTNode,*BTree;
void CreateBTree(BTree *T)
{
char ch;
ch=getchar();
if(ch=='#')
(*T)=NULL;
else {(*T)=(BTree)malloc(sizeof(BTNode));
(*T)->data=ch;
CreateBTree(&(*T)->lchild);
CreateBTree(&(*T)->rchild);
}}
void Inorder(BTree T)
{
if(T)
{
InOrder(T->lchild);
printf("%2c",T->data);
InOrder(T->rchild);
}}
main()
{
BTree T=NULL;
printf("\n shu shu\n");
CreateBTree(&T);
printf("\n zhongxun wei:\n");
InOrder(T);
getch();}
我用TC2。0 编译说undefined _inorder 是怎么回事
#include<stdlib.h>
#include<conio.h>
#define MAX 20
#define NULL 0
typedef struct BTNode
{
char data;
struct BTNode *lchild,*rchild;
}BTNode,*BTree;
void CreateBTree(BTree *T)
{
char ch;
ch=getchar();
if(ch=='#')
(*T)=NULL;
else {(*T)=(BTree)malloc(sizeof(BTNode));
(*T)->data=ch;
CreateBTree(&(*T)->lchild);
CreateBTree(&(*T)->rchild);
}}
void Inorder(BTree T)
{
if(T)
{
InOrder(T->lchild);
printf("%2c",T->data);
InOrder(T->rchild);
}}
main()
{
BTree T=NULL;
printf("\n shu shu\n");
CreateBTree(&T);
printf("\n zhongxun wei:\n");
InOrder(T);
getch();}
我用TC2。0 编译说undefined _inorder 是怎么回事