#include <iostream>
#include <string.h>


using namespace std;

class person{

 private :
 
  char *Name;
  int age;
 public :
  person(const char *name, int age)
  {
   //Name = (char *)malloc(sizeof(char)*40);
   Name = new char[50];
   strcpy(Name,name);
   this->age = age;
  }
  ~person()
  {
   delete this->Name;   
  }
  void printPerson()
  {
   printf(\"name : %s\\n\",Name);
  }

};

void main()
{
 person juho(\"abc\",20);
// person jaeho = juho;

 
 juho.printPerson();
 juho.~person();

 system(\"pause\");

}

파괴자 호출시 왜 에러뜨죠..?ㅠㅠ