fatal error C1083: Cannot open include file: 'erchashu.h': No such file or direc
//erchashu.h
#include<stdlib.h>
#include<stdio.h>
typedef char DataType;
#include"BiTree.h"
BiTreeNode *CreatBiTree(DataType a[7])
{
BiTreeNode *root,*p;
Initiate(&root);
p=InsertLeftNode(root,a[0]);
p=InsertLeftNode(p,a[1]);
p=InsertLeftNode(p,a[2]);
p=InsertRightNode(p,a[3]);
p=InsertLeftNode(root->leftChild,a[4]);
InsertLeftNode(p,a[5]);
InsertRightNode(p,a[6]);
return root;
}
//stoorder.h
#include<stdlib.h>
#include<stdio.h>
#define MaxQueueSize 100
#include"SeqCQueue.h"
void stoorder(BiTreeNode *root)
{
int b;
BiTreeNode *d,*l ,*r;
SeqCQueue Q;
int i=2;
QueueInitiate(&Q);
QueueAppend(&Q,root);
b=QueueNotEmpty(Q);
if(b==1) QueueDelete(&Q,&d);
return ;
printf("%c",d->data);
l=root->leftChild;
r=root->rightChild;
while(i<7)
{
if(l!=NULL)
QueueAppend(&Q,l);
if(r!=NULL)
QueueAppend(&Q,r);
b=QueueNotEmpty(Q);
if(b==1) QueueDelete(&Q,&d);
return ;
printf("%c",d->data);
i++;
l=root->leftChild;
r=root->rightChild;
}
}
#include<stdlib.h>
#include<stdio.h>
#define N 7
#include"erchashu.h"
#include"stoorder.h"
void main()
{
BiTreeNode *root;
char a[N]="ABCDEFG";
root=CreatBiTree(a);
soorder(root);
}