![]() |
Trying to make a linked list in C please help
I've been wrestling with this for some hours and I'm wondering if anyone can see what's wrong with it.
This is a linked list meaning the last element should always point to NULL Code:
int main(void) {Code:
if (userInput == 1) { // Let's add a new member!Code:
MEMBER* memberInsert(MEMBER* memberStart, char fname[], char mInit, char lname[], char phonenum[]) {Code:
MEMBER* insertMember(MEMBER *memberStart, MEMBER *newMember) { |
Re: Trying to make a linked list in C please help
In memberInsert():
newMember->next = NULL; If that's not it, what behavior are you expecting and what is the result? Rob |
Re: Trying to make a linked list in C please help
send the whole code here
or send it with pm. |
| All times are GMT +5.5. The time now is 21:51. |