복사 생성자 : http://huiyu.tistory.com/341*디폴트 복사 생성자는 멤버 대 멤버의 복사를 진행한다. 이러한 방식의 복사를 가리켜 '얕은 복사'라 하는데, 이는 멤버변수가 힙의 메모리 공간을 참조하는 경우에 문제가 된다.*디폴트 복사 생성자의 문제점123456789101112131415161718192021222324252627282930313233343536373839404142#include #include using namespace std; class Person{private: char * name; int age;public: Person(char * myname, int myage) { int len = strlen(myname) + 1; name = new char[l..