Mail Archives: djgpp/1997/02/17/17:27:06
nikki AT gameboutique DOT co (nikki) wrote:
>struct node {
> unsigned int frequency;
> struct node *next; /* used to create an ordered list
> struct node *zero_child, *one_child;
> unsigned short symbol;
> char *code; /* a string of 0's and 1's */
>};
>int huffman_encode ()
>{
> struct node *histogram[NUM_SYMBOL_VALUES];
Hmn... did you try just:
node* histogram[NUM_SYMBOL_VALUES];
I have always used this (probably more borland-ish) syntax, but if
it's functionally equivalent to the above then I totally agree with
you: I can't find anything wrong with this either... Unless there is
other code, which could be screwing things up, too :)
- Calvin -
www.cadvision.com/frenchc
- Raw text -