cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Problem with deleting pointer
Problem with deleting pointer
May 20, 2013 at 12:48pm UTC
yl88
(1)
not nedde any more.
Last edited on
May 27, 2013 at 8:48am UTC
May 20, 2013 at 1:52pm UTC
cire
(8284)
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.