YES! Vart! I figured that out myself at the end of Math class. I came here to post my resolution. I finally got it! Here's the final deleteNode function I came up with that works in case it...
Type: Posts; User: TuxRules
YES! Vart! I figured that out myself at the end of Math class. I came here to post my resolution. I finally got it! Here's the final deleteNode function I came up with that works in case it...
I got the first one working again. I had it working previously but fudged it up.
void deleteNode(node_Ptr *listStarter)
{
node_Ptr previPtr, curPtr, temp;
if...
Okay I can see that. Still, it doesn't help me to understand why my code isn't functioning properly as I thought I was de-threading and freeing properly.
First of all, thanks for the reply. Secondly, it indeed has to be bottom up on the stack. And finally, we have to not just free the node but properly de-thread it first.
Also, your example...
I get a string from the user and store it in a linked list in proper order and then print the final list. This works fine. However when it comes to deleting the bottom node on the stack, my code...
Hey you make a very apt point. I appreciate that understanding. Thanks.
Yes but then wouldn't that restructuring, as bad as it may be, get the program a little closer to something I can understand and rewrite? At the moment, I can make only quick guesses as to what it...
I found a freeware program call UrthWurm I had been looking for on the internet but the EXE cannot run on my system (16-bit on 64). I found the source but it's written in TURBO PASCAL 7.0. I only...
I was wondering about standards. I have two function beyond main:
function a decides if the information passed to it needs to be printed to the screen
function b prints the information to the...