Quote Originally Posted by Gorbo View Post
So main is void instead of int big deal it's not a real program just a test program and i need the code unchanged all changes must be in class X why do i need it well it's an assignment so no reason really just because it's what needs to be done...

anyway i hope i cleared things up and you can point me to the right direction now...
Sentences are a good thing.

That doesn't clear anything up as you didn't provide an explanation as to why it's required. Let's try again. Why do you need to call delete on a stack allocated object? What are you trying to accomplish?