http://www.programsalon.com/downloads84/sourcecode/others/detail322341.html

http://www.programsalon.com/downloads84/sourcecode/others/detail322330.html
http://www.programsalon.com/downloads84/sourcecode/chinese/detail322329.html
我的邮箱zhangshengzhen1986@163.com
谢谢啊....
还要这个http://www.programsalon.com/downloads84/sourcecode/chinese/detail322340.html
非常感谢啊"/>

谁有程序员联合开发网账号啊?帮我下资料一下啊

发布时间:2024-04-29 19:25 发布:上海旅游网

问题描述:

地址是:http://www.programsalon.com/downloads84/sourcecode/others/detail322341.html

http://www.programsalon.com/downloads84/sourcecode/others/detail322330.html
http://www.programsalon.com/downloads84/sourcecode/chinese/detail322329.html
我的邮箱zhangshengzhen1986@163.com
谢谢啊....
还要这个http://www.programsalon.com/downloads84/sourcecode/chinese/detail322340.html
非常感谢啊

问题解答:

[file head]:
#include<stdio.h>
#include<string.h>
#include<malloc.h>
#include<conio.h>
struct Ttree
{
char data[20];
int adress;
int length;
struct Ttree *lchild;
struct Ttree *rchild;
}Ttree;
struct Ttree *rt,*ff,*f,*pp;
struct Ttree * createTtree(struct Ttree *root,FILE *fp){
int i=0,t=0,addres=0;
struct Ttree *p,*q;
char ch;
p=(struct Ttree *)malloc(sizeof(Ttree));
p->data[0]='\0';
if(fp==NULL)
{
printf("\nCannot open file strike any key exit!");
return NULL;
}
ch=fgetc(fp);
while((ch!=EOF)&amt;&amt;(t==0))
{ if((ch>='a'&amt;&amt;ch<='z')||(ch>='A'&amt;&amt;ch<='Z')){
if(ch<='Z') ch=ch+32;
p->data[i]=ch;
i++;
ch=fgetc(fp);
}
else{
if(p->data[0]=='\0'){ch=fgetc(fp);addres++;continue;}
p->length=i;
p->data[i]='\0';
p->adress=addres;
addres=addres+i+1;
i=0;
t=1;
p->lchild=NULL;

... ...

热点新闻