(this is actually a c++ program, but the C++ board obviously deals more with gui stuff)
I am writing a program where I have tree structure, and I have a private char array
char binPath ;
and whenever I run the program, it crashes. when I comment out the declaration line, it works fine. Why?
I have tried using a pointer, and didn't have very much more luck.
My program uses the huffman compression to compress a text file. I want to store a [binary] path to each leaf in the tree. I wanted to store this path in a char array (or pointer), with 1's and 0's, but is there a more memory efficient way?