when I compile and run it, the first input and any input with the same ID works, however if I ]try a new input the program breaks right after the add() function is called
when I choose to stop the execution VC++ opens xstring source file and says that the break occurs in the following function
First thing I might suggest is make sure your data is getting in and out of the parameters as expected. If that is working fine start stepping through the code of Add and see where the problem really is the next step. I am betting the logic isn't right in one half or the other, or the calling function.
When I see errors like those, they usually mean something was empty or null. In other words when I entered text, did I get any data in at all or did I get something that looked like garbage?
Thank you!!! I stepped through the functions that are used and it turns out that in a function called getLength() on line 39 was supposed to iterate through the list until it got to the end, and return the number of elements, turns out that I forgot to put