CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 2.60 seconds.

  1. Replies
    23
    Views
    23,587

    Re: Using delete on an object without new

    So you didn't have any idea that what they are asking you to do is designed to waste your time? That's what it seems like to me, because you cannot do what you say you want to do. It's like asking...
  2. Replies
    23
    Views
    23,587

    Re: Using delete on an object without new

    Test programs are real programs.
    You're responding to professional programmers who have decades of experience here -- don't expect that we won't ask you questions on what you're really trying to do....
  3. Replies
    23
    Views
    23,587

    Re: Using delete on an object without new

    Why? What purpose does instantiating an object, and then calling "delete" serve?

    Also, main() returns int, not void.


    struct SomeX
    {
    };

    typedef SomeX* X;
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured