Here is one of my functions, i'm practicing c++ without using the oo concept.
i've been trying it for a whole night but i still can't figure it out. The code works fine on example 1. When i call the function InsertintoSortedList, it allow me to insert only once. After that, if i call it again, it just jumped out from the function. The link below is an example. "ID: 1" is the one i first inserted.
Please post the complete error message, all of them, exactly as they appear in your development environment.
By the way if you're using one of the current C++ standards you should be using nullptr instead of NULL.
Thankyou for replying. I've already solved the nullptr problem. However, another new problem pop out again. So i've edited the topic and a link on the sample output. I've been figuring this thing for a whole night. Still no progress on what could possibly cause it.