Type: Posts; User: MustSeeMelons
Search took 0.01 seconds.
October 15th, 2012, 06:14 AM
October 15th, 2012, 05:13 AM
Forgot to delete that pointer for the bunny, anyway, it wasnt used.
Because, rand()%4 would give me 0-4, but those positions contain Male names, i need rand()%(14 - 10)+10 gives me 10-14, which are...
October 7th, 2012, 11:24 AM
Um, the Bunny doesnt have the next pointer, BunnyInList does, the Bunny it self has no idea that its in a class.
As for the Random function, well, youre right, dont know how i didnt think of that...
October 4th, 2012, 06:46 AM
Well thank you. Im not racist, but i do like to make my method names a bit more interesting, otherwise its just too plain and booring, without any character. Spices thing up.
October 4th, 2012, 05:03 AM
Im happy to inform, that this is a happy post - i corrected my mess and everything is working as it should^^ (Maybe there is a small glitch somewhere, but i havent found it yet). Went through my code...
October 2nd, 2012, 04:13 AM
InList->Next=Head; This is wrong
Head is still NULL at that point, why is it wrong? Should i just use InList=NULL then?
I tried debugging - it...
October 1st, 2012, 01:57 PM
Dont have much time, but i have done some changes, created another class that handles the bunnies in the list. The sad parts is that nothing has changed :| If i create 5 bunnies and then delete with...
September 25th, 2012, 12:50 PM
Well ok, thanks, understood the idea. When i create a new bunny, i create a struct inside, that has the information about the bunnies location and its neighbours. The bunny itself now is just data...
September 25th, 2012, 12:02 PM
Thats what I am going to do, cant put everything together in my head.
Thanks for the post. I learned what a linked list is from tutorials, I went through 3 if i...
September 24th, 2012, 01:31 PM
Thank you for your reply and advice :) Will tear this mess down peace by peace and learn to debug. I got the idea how to write the add function from a tutorial, guess it was wrong or i miss...
September 24th, 2012, 11:23 AM
Hi everyone around here, im new and im hopint to give and get help ;)
The task is to create a linked list consisting of bunny's, the bunny is a class.
Im having problems in managing the list...
Click Here to Expand Forum to Full Width