Ok, I made some improvements. First of all, I made the functions take and return recipes instead of integers, and the recipe struct no longer is private.
Second of all, I made 2 versions of it; one using GC and one a hash table I found (this one
). Now I'm wondering if you guys could tell me which one should be better, or if there is a way for me to test their speeds (which I would like to do even though you would be able to say which one is better) and how to do it.
Here are the codes in case you wanna see them.
It was fun learning how to use GC and that hash table, so thanks for making me learn to use them.