Reputation: 0 Apprentice
- Active Posts:
- 37 (0.09 per day)
- 03-November 12
- Profile Views:
- Last Active:
- Nov 19 2013 10:10 PM
- Dream Kudos:
Posts I've Made
Posted 30 Oct 2013Horray! baavgai to the rescuee. Gotcha, thanks so much.
Posted 30 Oct 2013Thanks for all the helpful suggestions. Could you possibly tell me where/why the above program crashes?
Posted 11 Oct 2013You people are awesome, everyone gave me more insight and helped me with my issue at the same time. Thanks all. and LOL no I do not hate myself! That was the syntax my teacher used in a sample Linked List program, so I was like sure why not.
Posted 9 Oct 2013Hmm, why would you free(adder) after you've allocated space for it and copied all te stuff into it?
If you want to actually append something to *tail then do:
adder->next = NULL; adder->prev = *tail; (*tail)->next = adder; *tail = adder;
kinda still new to C, but according to my understanding adder was just a pointer used to just to create the node. Then what adder point to becomes tail. therefore it now has no use, so I free it?
Posted 22 Sep 2013Well I simply changed the doubles to ints (since apparently double we're not needed) and yes for the displaying of chunks I confused the two sizes and instead set the cap of the for loop to (end-1)/3. And now everything works.. If it wasn't for you I would be stuck on this little error of logic forever. Thank you soo much, Baavgai! You're awesome man
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
splicecube hasn't added any friends yet.