You're right. I changed it to
void append(int i)
{
cursor = first;
while (cursor->next != NULL)
{
cursor = cursor->next;
Type: Posts; User: Rebecca Doris
You're right. I changed it to
void append(int i)
{
cursor = first;
while (cursor->next != NULL)
{
cursor = cursor->next;
I tried implementing append this way, but I get a segfault. Do you have any suggestions?
void append(int i)
{
cursor = first;
while (cursor != NULL)
{
cursor =...
I'm stuck on linked lists. I'm confused as to how to create a new linked list --- there are loads of examples on the internet of how to iterate through a linked list that ALREADY exists, and there...