i have the break; in both the insertName and insertAge function, but still seg fault when adding more than one struct and still seg faults when removing struct. i'm obviously missing something here...
Type: Posts; User: S15_88
i have the break; in both the insertName and insertAge function, but still seg fault when adding more than one struct and still seg faults when removing struct. i'm obviously missing something here...
I have a program that adds a name and an age to a structure then that structure is added to a list that's sorted by name and age.
when i add a struct then go to remove it, seg fault!
when i add...
Hi there i've been tinkering with this program for a while and think i have it figured out, but i'm getting some segmentation faults and memory issues.
Here are my issues, if i understoud them i'd...
thanks for the advice, i need to take a break though before my eyes fall out. I appreciate all the help.
Thanks, ALain
after each post by ppl i keep getting more and more discouraged haha as the ideas that are presented break some rule in the assignment.
I've decided to post the assignment just to satisfy...
yes i'm guilty of posting an assignment, and i agree it isn't the best way to do this but the prof really wanted to test our knowledge and apparently i've been tested haha i just can't seem to figure...
So i've slaved away some more at this and i don't understand where i'm going wrong.
My program allows the user to enter a name and an age, multiple times to create the list.
I then sort the list...
Hey thanks for the sweet diagram, i've actually re-written my program to now what i think makes sense. i've been drawing diagram after diagram but i can't wrap my head around this without using a...
I want to take my current prorgam and take the structure and create a sorted list.
When a user enters a name and age i want to put that at the head then the next time a name and age is added i...
sorry i appologize i found my own error.
THREAD SOLVED
I have a block of code that takes input from stdin and stores it in a variable in a structure. then i go to print the contents of the structure but for some reason it keeps printing the last this...