88问答网
所有问题
当前搜索:
c语言将数据写入txt
c语言
编程问题 急!!!
答:
/*从文件中读取
数据
*/people *load(){ people *p,*q,*h=NULL; FILE *fp; char infile[10]; printf("Enter infile name,for example
c
:\\f1\\popo.
txt
:\n"); scanf("%s",infile); if((fp=fopen(infile,"rb"))==NULL){ printf("can not open file\n"); exit(1); }printf("\n---Loadi...
有谁可以用
c语言
做个哈夫曼编码和译码的课程设计 带图形界面的(我是学...
答:
void treeprin(hfmtree *hf)//将赫夫曼树的图
写入c
:\\treeprin.
txt
文件中{char tree[100][100];int i,j;FILE *pf;pf=fopen("c:\\treeprin.txt","w");for(i=0;i<100;i++) for(j=0;j<100;j++) tree[i][j]='#'; preordertraverse1(0,tree,hf,0);//对此时的赫夫曼树进行造图操作...
棣栭〉
<涓婁竴椤
55
56
57
58
59
60
61
62
63
76
其他人还搜