C++ - TechRepublic
General discussion
March 31, 2001 at 11:56 PM
gaurav.singhal

C++

by gaurav.singhal . Updated 24 years, 11 months ago

Hi All,

I need help in C++ . I want to delete the object explicitly when i want . i dont want to be dependent on complier or garbage collector . I also dont want to use define the scope of the object using “{” and end scope by “}” .

ex:

class base
{
};

void main()
{
base object ;

// some code here

// i want delete object on this line ?

/// some more code

}

thanks a lot

Gaurav

This discussion is locked

All Comments