destructor
C++ - destructors [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-02-06 01:14 分类:问答Quick successful exit from C++ with lots of objects allocated
I\'m looking for a way to quickly exit a C++ that has allocated a lot of structures in memory using C++ classes.The program finishes correctly, but after the final \"return\" in the program, all of th[详细]
2023-02-05 23:04 分类:问答Destructor of class with pointer array C++
If I have a class with an array of pointers to another class Vehicle : class List { public: //stuff goes here[详细]
2023-02-05 13:04 分类:问答Windows Form Closed but not destroyed
In my W开发者_开发百科indows Form application when I close a form (which is derived from a base form), its FormClosing and FormClosed Events fire but destructor never fires off. It still keeps the mem[详细]
2023-02-05 09:40 分类:问答Operator new/delete & destructors
So I\'m a beginner trying to get to grips with operator new.开发者_如何学GoWhat\'s wrong with my destructor?[详细]
2023-02-05 06:56 分类:问答C++ unwanted destruction
Can somebody explain why when c finishes construction, the destructor of b (member of c) is called, while d is destructed - as expected - when c\'s destructor is called ?[详细]
2023-02-05 06:25 分类:问答Is there any use in assigning NULL to a pointer after deleting it in destructor in C++? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: Is it worth setting pointers to NULL in a destructor?[详细]
2023-02-03 14:32 分类:问答When a constructor is called explicitly is the initializer and member variables constructed?
In the use of \"placement new\" it is suggested to call the cons开发者_Go百科tructor and destructor explicitly.[详细]
2023-02-03 14:19 分类:问答Two questions about Dispose() and destructors in C#
I have a question about how to use Dispose() and destructors. Reading some articles and the MSDN documentation, this seems to be the recommended way of implementing Dispose() and destructors.[详细]
2023-02-02 14:53 分类:问答Will Derived class type compatibility to base class cause a memory leak?
I understand that derived class is type compatible with a pointer to its base class. In the given sample code, new bar object construction takes place calling foo::foo() followed by bar::bar(). In the[详细]
2023-02-02 12:58 分类:问答
加载中,请稍侯......