Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huffman decode & encode 的輸入 輸出問題 #14

Open
thinphone23 opened this issue May 31, 2016 · 5 comments
Open

huffman decode & encode 的輸入 輸出問題 #14

thinphone23 opened this issue May 31, 2016 · 5 comments
Labels

Comments

@thinphone23
Copy link

助教你好
請問下huffman編碼解碼,這兩個code的輸入輸出是,讀取要進行編碼file當輸入,然後解碼再讀取編碼後的文件,當解碼的輸入嗎?謝謝!

@Yi-Tseng
Copy link
Contributor

您好

輸入輸出都是透過 standard input 及 standard output

decoder 的輸入會是你們寫的 encoder 的輸出

我們也會去比對原始文件跟 encode + decode 後的文件是否有差異

@thinphone23
Copy link
Author

助教你好:
可以請問下decoder部分的input,是怎麼判斷輸入結束了呢?是換行鍵嗎?謝謝~

@Yi-Tseng
Copy link
Contributor

Yi-Tseng commented Jun 2, 2016

藉由 EOF (End Of File)來判定

@thinphone23
Copy link
Author

thinphone23 commented Jun 2, 2016

我有點搞混了助教:
所以都是以文件(txt檔)的方式讀取input 文件方式輸出output嗎?
還是從執行視窗輸入,把結果輸出到debug的視窗。謝謝~

@Yi-Tseng
Copy link
Contributor

Yi-Tseng commented Jun 3, 2016

See README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants