#Process returned -1073741819 (0xC0000005) on Linked List

6 messages · Page 1 of 1 (latest)

lucid spadeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

cloud lake
#

Thats because your display function rewrites the temp to the end of the list, so then when you try to add a new entry the temp->next is nullptr

#

Just create an instance of head in the display function

honest kite
lucid spadeBOT
#

@honest kite

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. You can use !solved to close a post and mark it as solved.

honest kite
#

!solved