Problem with deleting pointer

not nedde any more.
Last edited on
You need to take another look at your sort function.

The line:
int* taket = new int(students.ElementsNum());
in particular and how you interact with taket subsequently. That doesn't allocate an array of type int, if that's what you're thinking.
Topic archived. No new replies allowed.