the accu's book review link is down now :(. All the links and books you guys have provided have been extremely helpful and they will be books I'll be putting on my desk once I graduate from school. ...
Type: Posts; User: Lechx
the accu's book review link is down now :(. All the links and books you guys have provided have been extremely helpful and they will be books I'll be putting on my desk once I graduate from school. ...
Hmm that takes care of two the values...and getting the third is very easy. Thanks for the idea! I was thinking of coding practices and overlooked what IRC has already done for me!
I was thinking about doing a static table in memory, but I don't know the number of entries. I could have 10, or I could have 9999. Should I instead use a dynamically allocated table?
I'm starting to write an app that is similar to an IRC logger. Each log file will be based on three values or so -- user name, IP, and channel. The reason I have both user name and IP is so that I...
I want to learn more popular algorithms to accomplish common tasks, ie. Dijkstra's and A* search, and I want to learn more popular data structures, ie. minheaps, search trees. I am interested in a...
I was planning on doing something small (ie ascii art vs. a real gui) and building up. I'll likely add obstacles and work with those two algorithms.
thanks for all the help. The main problem was whether there was a common way to store the relative angle, but I'll just stick with all the if statements. Time to look into ascii art to get this...
I'm currently using something like that now. I just find the angle to get from one coordinate to another, but the difficulty lies in turning with respect to where it currently is. I just went...
I am trying to set up a program where I have a car and I want to make it move wherever the user decides. For now, I only have text printing out telling me what is happening to make sure I can do the...
I am using Visual Studio. I have a program which calls a function that can fail (Bluetooth initialization, closed source). If this certain function fails, then I'll need to restart the process. I...
In an earlier post, someone told me to try valgrind to look for memory leaks.
Thanks for all the tips! I did what you said and changed pointers instead of re-creating a hash table. It works great now!!! I doubt i'll ever use this function in the real world, but now i'm going...
Sorry, I tried to PM you to delete my other post, but when I try to PM it says I do not have user privledges. Is it possible for me to delete my other post?
I'm new to C and learning about dynamic memory allocation, and I would like some help if possible.
I am getting memory leaks, but I am not sure precisely where. Whenever I call Resize_Hash_Table,...
i would like to check the memory that my program is using through a function. I've attached my code below.
I've never used a debugger, but i'll take a look at valgrind.
/*This hash table...
I just started learning malloc and free, but I'm not sure if I'm using them right. Is there a way to check how much memory is left after a free? I seem to be using up all the heap space pretty...