Linked List, node creation question

Hey guys,
I'm getting a seg fault error when I run my program (the error comes with the assignNodes function), i'm realizing at this point im doing something wrong with making a new node to put the info in, but i'm still stuck on what to do. Do I need to write another line to create new nodes or make a different pointer? Here are my files. What i'm trying to do is read from a file and make an array of the info, then put that array into the nodes. Then repeat the process for every person (this is an ordered link list address book). Thanks!
Thanks!

later on when you want to remove the node. Also, you have this function return type as void. You wont be able to access this pointer when the function exits. It only has a local scope to this function. Either return it, or pass a contact pointer as an argument and allocate that way.

later on when you want to remove the node. Also, you have this function return type as void. You wont be able to access this pointer when the function exits. It only has a local scope to this function. Either return it, or pass a contact pointer as an argument and allocate that way.

Returning it is probably the best idea, since shared_ptrs only have an explicit constructor and no assignment operator for T*.

Originally Posted by Adak

io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.

Originally Posted by Salem

You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.