欢迎来到天天文库
浏览记录
ID:52194771
大小:95.00 KB
页数:28页
时间:2020-03-24
《用C++编写的文件压缩解压程序.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.//-----------------------------------------------------------------------------//huffmantreemain.cpp//主界面#include"huffmantree.h"#include#include#include"compress1.h"#include"Ceshi.h"voidmenu(){ cout<2、cout<<"ttt1压缩文件"; cout<<"ttt2解压文件"; cout<<"ttt3测试"; cout<<"ttt0退出"; return;}intmain() { charmeiyong; cout<<"" <<"t &*************** 压缩软件 **************&" <<"t * 3、 *" <<"t * *" <<"t * *" <<"t * 运行本软件之前,请务必仔细阅读使用指南 *" <<""; cin.unsetf(ios::skipws); 4、cin>>meiyong; cin.setf(ios::skipws); ifstreamfin("使用说明.txt",ios::binary); fin.unsetf(ios::skipws); while(fin>>meiyong) { cout<5、------------------------------------------*"; cout<<"tt* 实验六:霍夫曼树的应用 *"; cout<<"t ******* *******"; cout<<"tt* 作者:gdgzzch 学号:15201314 *"; cout<<"tt*---------------------------------------6、----*"; cout<<"tt 2005.11.16"; menu(); intchoice; cout<<"请选择操作:"; cin>>choice; while(1) { switch(choice) { case1: Compress(); break; case2: Decompress(); break; 7、 case3: Ceshi(); break; case0: cout<<"tt********* 谢谢您使用本软件,再见! ***********"; return1; default: cout<<"无此操作!"; } cout<>choice; } return..1;}//-----------------------8、-----------------------------------//compress1.h//压缩#ifndefCOMPRESS#defineC
2、cout<<"ttt1压缩文件"; cout<<"ttt2解压文件"; cout<<"ttt3测试"; cout<<"ttt0退出"; return;}intmain() { charmeiyong; cout<<"" <<"t &*************** 压缩软件 **************&" <<"t *
3、 *" <<"t * *" <<"t * *" <<"t * 运行本软件之前,请务必仔细阅读使用指南 *" <<""; cin.unsetf(ios::skipws);
4、cin>>meiyong; cin.setf(ios::skipws); ifstreamfin("使用说明.txt",ios::binary); fin.unsetf(ios::skipws); while(fin>>meiyong) { cout<5、------------------------------------------*"; cout<<"tt* 实验六:霍夫曼树的应用 *"; cout<<"t ******* *******"; cout<<"tt* 作者:gdgzzch 学号:15201314 *"; cout<<"tt*---------------------------------------6、----*"; cout<<"tt 2005.11.16"; menu(); intchoice; cout<<"请选择操作:"; cin>>choice; while(1) { switch(choice) { case1: Compress(); break; case2: Decompress(); break; 7、 case3: Ceshi(); break; case0: cout<<"tt********* 谢谢您使用本软件,再见! ***********"; return1; default: cout<<"无此操作!"; } cout<>choice; } return..1;}//-----------------------8、-----------------------------------//compress1.h//压缩#ifndefCOMPRESS#defineC
5、------------------------------------------*"; cout<<"tt* 实验六:霍夫曼树的应用 *"; cout<<"t ******* *******"; cout<<"tt* 作者:gdgzzch 学号:15201314 *"; cout<<"tt*---------------------------------------
6、----*"; cout<<"tt 2005.11.16"; menu(); intchoice; cout<<"请选择操作:"; cin>>choice; while(1) { switch(choice) { case1: Compress(); break; case2: Decompress(); break;
7、 case3: Ceshi(); break; case0: cout<<"tt********* 谢谢您使用本软件,再见! ***********"; return1; default: cout<<"无此操作!"; } cout<>choice; } return..1;}//-----------------------
8、-----------------------------------//compress1.h//压缩#ifndefCOMPRESS#defineC
此文档下载收益归作者所有