== 느낀점 == == 소스 == === main.cpp === {{{~cpp #include #include "TestClass.h" using namespace std; const int MAX_CLASS=255; void main() { int intinput; TestClass* makedClass[MAX_CLASS]; int classNumber=0; while(1) { cin >> intinput; if (0==intinput) break; int suchNumber=-1; for (register int i=0; iGetNumber()) suchNumber=i; } if (-1==suchNumber) { makedClass[classNumber]=new TestClass(intinput); ++classNumber; } else { delete makedClass[suchNumber]; for (register int i=suchNumber+1; i using namespace std; TestClass::TestClass(int inputNumber) { cout << "클래스가 생성되었습니다.\n"; m_haveInt=inputNumber; } TestClass::~TestClass() { cout << m_haveInt << "을 가진 클래스가 파괴되었습니다.\n"; } int TestClass::GetNumber() { return m_haveInt; } }}} == 나에게 할말 == ---- [05학번만의C++Study] [05학번만의C++Study/숙제제출/4]