1)I:初始化(Initialization)。從終端讀入電文,寫到tobetrans文件中,統(tǒng)計電文的字符集合和對應的權值集合,建立哈夫曼樹,并將哈夫曼樹存于文件hfmtree中。 (2)C:編碼(Coding )。利用已建好的哈夫曼樹(如不在內存,則從文件hfmtree中讀入),對文件tobetrans中的正文進行編碼,然后將結果存入文件codefile中。 (3)D:譯碼(Decoding)。利用已建好的哈夫曼樹將文件codefile中的代碼進行譯碼,結果存入文件textfile中。 (4)P:印代碼文件(Print)。將文件codefile以緊湊格式顯示在終端上,每行50個代碼。同時將此字符形式的編碼文件寫入文件codeprint中。 (5)T:印哈夫曼樹(Tree printing)。將已在內存中的哈夫曼樹以直觀的方式(樹或凹入表形式)顯示在終端上,同時將此字符形式的哈夫曼樹寫入文件treeprint中。 用戶界面要求設計為“菜單”方式。 修改你的系統(tǒng),實現(xiàn)對你的系統(tǒng)的源程序的編碼和譯碼(主要是將行尾符編/譯碼問題)。實現(xiàn)各個轉換操作的源/目標文件,均由用戶在選擇此操作時指定。
標簽: Initialization 初始化
上傳時間: 2014-01-04
上傳用戶:windwolf2000
天煌公司的thus-1型嵌入式實驗開發(fā)系統(tǒng)I/O接口實驗
標簽: thus 實驗 嵌入式 開發(fā)系統(tǒng)
上傳時間: 2016-08-23
上傳用戶:wlcaption
Freescale i.MX27 wince 6.0 board support package
標簽: Freescale support package wince
上傳時間: 2016-08-23
上傳用戶:zhuoying119
RS232.C was written to provide all of the basic functionality needed to employ serial I/O in any application written with Borland C language compilers. Some features are: 1. Ease of use. No assembly language or library files are used and a simple "#include" statement is all that is required to access all of the functions provided. 2. Both input and output are buffered and interrupt driven for efficiency. 3. Serial ports 1 - 4 are supported on PC, AT and PS/2 compatibles.Chained interrupts used on port 3 and 4 are allowed for so as not to interfere with devices such as a mouse or printer. Transmission speeds of 110 to 115200 baud are available. 4. Detection and utilization of hardware buffered UARTs (NS16550AF etc.) found in some machines is automatic. 5. Interrupt driven hardware and XON/XOFF flow control is provided for. 6. All source code is included. RS232.C can be used with all memory models.
標簽: functionality provide written employ
上傳時間: 2016-08-24
上傳用戶:小眼睛LSL
Core Java™ 2: Volume I - Fundamentals By Cay S. Horstmann, Gary Cornell Publisher : Prentice Hall PTR Pub Date : August 22, 2002 ISBN : 0-13-047177-1 Pages : 752 經典JAVA教程。
標簽: S. Fundamentals Horstmann Publisher
上傳時間: 2014-01-09
上傳用戶:guanliya
89c2051串口通訊89C51 單片機通過普通I/O 口與PC 機RS232 串口實現(xiàn) 通信的硬件接口電路
上傳時間: 2014-01-15
上傳用戶:lnnn30
雙極性步進電機細分驅動器的設計與實現(xiàn)論述j一種雙極性步進電動機細分驅動器的I作原理,該驅動器能較好地改 善步進電動機的運行性能,具有實用性強、結構簡單、成本低的優(yōu)點。針對實際調試中 出現(xiàn)的問題進行分析后,提出了對策;最后給出了試驗結果。
上傳時間: 2016-08-25
上傳用戶:comua
哈夫曼編碼 哈夫曼樹 字符生成數 譯碼 由0和1組成的哈夫曼代碼
上傳時間: 2016-08-25
上傳用戶:han_zh
利用MCS51單片機的I/O口實現(xiàn)PWM脈寬調制,可移植到具有PWM功能的51單片機。
上傳時間: 2014-01-15
上傳用戶:遠遠ssad
這是ICQ的軟件.跟QQ一樣.有代碼.ICQ的意思是i seek you ,有代碼的詳細說明
上傳時間: 2013-12-23
上傳用戶:dapangxie