write-a-hash-table icon indicating copy to clipboard operation
write-a-hash-table copied to clipboard

Please add final code example

Open edo9k opened this issue 6 years ago • 3 comments

I am not experienced C coder, and the lack of full code examples makes it really hard to check whether I am making a mistake or you guys simply did not provide the needed to code, or the direction that I should implement that part myself.

edo9k avatar Dec 29 '18 17:12 edo9k

https://github.com/jamesroutley/algorithms-and-data-structures/tree/master/hash-table/src

raidan00 avatar Feb 14 '19 02:02 raidan00

How do I compile the code?

jairajsahgal avatar Aug 16 '19 02:08 jairajsahgal

@jairajsahgal You'll need to link everything together with your compilation command. When the executable is run, whatever is in int main in main.c will be run. Here is the command that I am using to compile the code:

cc src/main.c src/hash_table.c src/prime.c -o ht

This will produce an executable called ht which you can run.

0xekez avatar Sep 05 '19 01:09 0xekez