登录
首页 » Windows开发 » 在发送端通过一个编码系统对待传输数据编码. 在接收端将传来的数据进行译码. 一个完整的系统应具有以下功能: (1)初始化.从终端读入字符集大小,以及...

在发送端通过一个编码系统对待传输数据编码. 在接收端将传来的数据进行译码. 一个完整的系统应具有以下功能: (1)初始化.从终端读入字符集大小,以及...

于 2022-02-10 发布 文件大小:2.98 kB
0 190
下载积分: 2 下载次数: 1

代码说明:

在发送端通过一个编码系统对待传输数据编码. 在接收端将传来的数据进行译码. 一个完整的系统应具有以下功能: (1)初始化.从终端读入字符集大小,以及字符和权值,建立 哈夫曼树,并保存. (2)编码.利用以建好的哈夫曼树对正文进行编码,然后保存. (3)译码.利用已建好的哈夫曼树将文件中的代码进行译码,结果打印出来. -At the sending end through a coding system for encoding transmit data treatment. Will be heard in the receiver to decode the data. A complete system should have the following functions: (1) initialization. Read from the terminal character set size, as well as the characters and the right values, the establishment of Huffman trees, and save. (2) coding. used to build the Huffman tree to encode the text and then save it. (3) decoding. the use of the Huffman tree has been built will document the code decoding, the results print out.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 以太网通讯例子
    以太网通讯例子-客户端,配合以太网通讯例子-服务器用-Ethernet communication example- the client, with the Ethernet communication example- the server to use
    2022-01-25 17:44:54下载
    积分:1
  • GetIP上网加速工具与源代码
    GetIP上网加速工具与源代码-GetIP accelerate Internet tools and source code
    2022-03-12 21:36:32下载
    积分:1
  • 银行帐户
    1.(帐户继承层次结构)创建账号,银行可能会用它来代表客户的银行账户的继承层次结构。所有客户在这家银行可以存款(即信用卡)资金投入到自己的帐户,并收回(即借记卡),资金从自己的账户。更具体的类型的帐户也是存在的。储蓄账户,比如,赚取其所持有的金钱利益。支票账户,比如,收取每笔交易的费用(如信用卡或借记卡)。活期账户,在另一方面,具有透支(负平衡)工具来取款。创建一个包含继承层次结构的基类账户,从账户类继承的派生类SavingsAccount,的CheckingAccount和CurrentAccount。基地classAccount应包括double类型来表示帐户余额中的一个数据成员。这个类应该提供接收一个初始的平衡,并用它来初始化数据成员的构造函数。的构造应验证的初始平衡,以确保它大于或等于0.0。如果不是,则平衡应设置为0.0和构造应显示一条错误信息,指出初始余额为无效。这个类应该提供三个成员函数。成员函数的信贷应该添加量的当前余额。成员函数借记应该退出账户资金,并确保扣款金额不超过该账户的余额。如果是这样,余额应保持不变,功能应打印信息“借方金额超过账户余额。”成员函数为getBalance应该回到当前余额。派生类SavingsAccount要继承的帐户上的功能,而且还包括一个double类型的数据成员指示分配给Account.SavingsAccount的构造的利息率(百分比)应该接收的初始平衡,以及用于SavingsAccount的兴趣的初始值率。 SavingsAccount应该提供的公共成员functioncalculateInterest返回一个双表示了兴趣账户所赚取的金额。成员函数calculateInterest应该由账户余额乘以利率确定这一数额。 [注:SavingsAccount应该继承的成员函数信用卡和借记卡作为是没有重新定义他们。]派生类的CheckingAccount应该继承基类的帐户,并包括一个double类型的附加数据成员,表示每transaction.CheckingAccount的构造所收取的费用应接收的初始平衡,以及一个参数,用来指示一费数额。类的CheckingAccount应该重新定义成员函数,信用和debitso它们从每当任一事务被成功地执行的帐户余额中减去费用。的CheckingAc
    2022-02-13 11:42:52下载
    积分:1
  • c++builder例程,很不错的
    c++builder例程,很不错的-c builder routines, very good
    2022-04-11 09:17:00下载
    积分:1
  • 一个还没完成的16位数据累加程序源代码!可以供初学者学习!...
    一个还没完成的16位数据累加程序源代码!可以供初学者学习!-Not yet completed a 16-bit data cumulative source code! Can be for beginners to learn!
    2023-01-10 09:45:03下载
    积分:1
  • 【程序70】 题目:写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度。    1.程序分析: 2.程序源代码:...
    【程序70】 题目:写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度。    1.程序分析: 2.程序源代码:-[70] procedures Topic: Writing a function, and the length of a string, in the main function in the input string and output its length. 1. Program analysis: 2. Program source code:
    2023-05-26 06:30:03下载
    积分:1
  • 学习的好资料很难得到的大家快来下啊 共同进步
    学习的好资料很难得到的大家快来下啊 共同进步-Study hard to get good information on the U.S. under the ah Come common progress
    2022-01-25 15:22:08下载
    积分:1
  • 很好的程序请使用
    很好的程序请使用-good procedure to use
    2022-03-06 13:05:25下载
    积分:1
  • K r u s k a l算法每次选择n
    K r u s k a l算法每次选择n- 1条边,所使用的贪婪准则是:从剩下的 边中选择一条不会产生环路的具有最小耗费的边加入已选择的边的集合中。注意到所选 取的边若产生环路则不可能形成一棵生成树。K r u s k a l算法分e 步,其中e 是网络中 边的数目。按耗费递增的顺序来考虑这e 条边,每次考虑一条边。当考虑某条边时,若将其 加入到已选边的集合中会出现环路,则将其抛弃,否则,将它选入。-K ruskal algorithm for each choice of n-1 edges, the greed of the criteria used are: from the left edge select does not produce a loop with the smallest cost edge has been selected to join the edge of the collection. Taking note of the selected edges have a loop if it can not form a spanning tree. K ruskal algorithm sub-e-step, in which e is the number of network edge. According to the order of incremental cost to consider this e edges, each taking a side. When considering a certain edge when, if its added to a collection of selected edge loop will appear, will be its discarded, otherwise, it selected.
    2023-02-08 08:10:04下载
    积分:1
  • VB源代码! 工厂管理系统 请下载使用后给点评价!
    VB源代码! 工厂管理系统 请下载使用后给点评价!-VB source code! Please factory management system used to download evaluation point! Thank you
    2022-10-19 17:10:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载