How to check if memory to which pointer p points has been succesfully deallocated?
See Question&Answers more detail:osHow to check if memory to which pointer p points has been succesfully deallocated?
See Question&Answers more detail:osIn few words: you can't.
Check out tools like Valgrind to help you debugging memory leaks issues.
Some other things you should consider:
delete
has no effect,vector
, ...) instead of rolling your own,