Hopefully novice code question.
Hello everyone! This will be my first time posting, but not my first time acquiring knowledge from this veritable cornucopia. I do hope that I am properly following all of the guidelines, and that my question isn't too vague.
Essentially I had a homework assignment where I needed to do a number of things to an array of objects. They were of two classes, student():person(), and faculty();person() that were both under an array called pPoint, where the students had 0-24, and the faculty had 25-49. I was able to get the program working on all fronts, aside from a sorting function.
I slaved away at the function, thinking that I had everything syntactically correct. Every time that I access this part of the program however, my debugger goes bananas (Visual Studio 2010). Every time I get to this section, it gives me the following, "Unhandled exception at 0x00e63b66 in Homework4.exe: 0xC0000005: Access violation reading location 0xcccccd04."
Is there something incorrect that I have done here? Side note, if more code is needed, please let me know. I just didn't want to flood the page with the program.
Thank you to all who read this posting.
for (sortA = 0; sortA < 23; sortA++)
for (sortB = 0; sortB < 23; sortB++)
if (pPoint[sortB]->getName() > pPoint[sortB+1]->getName())
sortC = pPoint[sortB+1]->getName();