Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add final code example #36

Open
edo9k opened this issue Dec 29, 2018 · 3 comments
Open

Please add final code example #36

edo9k opened this issue Dec 29, 2018 · 3 comments

Comments

@edo9k
Copy link

edo9k commented Dec 29, 2018

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.

@raidan00
Copy link

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

@jairajsahgal
Copy link

How do I compile the code?

@0xekez
Copy link

0xekez commented Sep 5, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants