Discussion Board
Go to the previous messageThere are no next messages
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.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
Cant get readHeader to work      Sakr, Hisham A.      Fri Oct 12 2001 3:55 pm       
Nevermind!      Sakr, Hisham A.      Fri Oct 12 2001 4:07 pm       

Back to previous screen