Current Forum: Homework 4 - Huffman Trees (Part 1) |
Date: Fri Oct 12 2001 4:07 pm |
Author: Sakr, Hisham A. <hsakr@andrew.cmu.edu> |
Subject: Nevermind! |
|
|
Nevermind, i found the source of the problem. It was cutting out when the input files contained no 'space' characters. In the readheader code the following lines would cause the function to prematurely quit when character 33 (space) with frequency of 0 was reached
if (posbreak && freq == 0) break;
I think I've fixed it now. |
|