i am new into c++ programming, and i have when i want to delete objects.
myClass* p_myClass=new myClass;
delete p_myClass;
this is working out well, but this is a pointer, if i use the following statements
myClass myObject;
delete myObject;
...the compiler (Visual C++) won't accept this.
if i try
delete &myObject
...the compiler accept. but i get a "runtime error".
I hope that anyone "out there" can help me.
Thanks!
Thomas