#include <stdlib.h>
#include <iostream>
using namespace std;
class samp{
	double *p;
public:
	samp(double d){
		p = (double*)malloc(sizeof(double));
		if(!p)exit(1);
		*p = d;
	}
	~samp(){cout << p << "‚Ì‰ð•ú\n";free(p);}
};

int main()
{
	samp ob1(123.09), ob2(0.0);
	ob2 = ob1;
	return 0;
}