gcc -g -Wall -Wextra topic4.c
gdb -q ./a.out
Reading symbols from ./a.out...
(gdb) run
Starting program:a.out
Hash table built successfully.
Maximum rehash time: 37
Type: Posts; User: StackEverFlow
gcc -g -Wall -Wextra topic4.c
gdb -q ./a.out
Reading symbols from ./a.out...
(gdb) run
Starting program:a.out
Hash table built successfully.
Maximum rehash time: 37
It does not fix the problem
so make it
exitCondition[]={'0','\0'} ?
I'm currently doing a hash search program. Here is the following code.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define M 12
#define N 467
Thank you guys for the helps. I think it's fixed now. I have a question for Salem. How do you get those error message in line 38-48 ?
Yes it is consistent now, it finished the table but it still got segmentation fault.
looks like the guy who edit it messed it up. for almost every huffTable need index first than the propreties like huffTable[i].weight. I'll paste new one here
#include <stdio.h>
#include...
I couldn't find a way to edit the post. Googling it says that cboard doesn't allow editing after certain duration? by the way I forgot to input the data3.txt
This is my first post on this website.
I'm currently doing my assignment on reading a text file and create a Huffman code for each alphabet.
I'm still on the step to create the tree by picking...