Что здесь происходит?
Код: Выделить всё
#include
using namespace std;
class cmod {
public:
cmod(int *p1=NULL, int *p2=NULL)
{
if( p1 == NULL && p2 == NULL){
delete(this);
}
else
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/41942751/how-do-you-destroy-an-object-in-its-constructor-and-return-null[/url]
Мобильная версия