Delete Linked List Seg Fault???
Hi, I am running the following program with the Test Delete function, and it works, except for when it gets to the end of the list, then it seg faults if the answer input is wrong (if the CheckAnswer if statement is evaluated): Does anyone know why this seg fault occurs?
Code:
int BeginQuizFirstTry (NODEPTR *headListPtr1, Mistro116 |
Mr Mistro... i'm getting a little concerned by the number and type of questions you're asking on LQ.org. It looks an awful lot like you're doing a school course in C++, and if that's the case we are NOT here to do your homework for you. You will have been provided notes as part of a school course to cover everythign you are deemed to need to know.
|
Yes, this is a project for school; however, I understand that you are not here to "do" my school work for me. But I thought this forum was on subject specific questions about programming, which is exactly what we have here, not write my program for me.
If I understand you correctly, only things interdependent from course work can be asked here? Well thats just rediculous because no where on here am I asking anyone to write anything. I am asking for suggestions on a problem, I'm not asking for any "hand me outs". And the number and type of questions? I post here every day/week almost, answering people's questions and posting some of my own which are sometimes and sometimes not related to course work and some are just independent research. I don't feel I need to explain myself to you, but since this was brought to my attention, I do believe you don't need to be concerned for anyone but yourself. Mistro116 |
All times are GMT -5. The time now is 11:48 AM. |