복사 생성자
-
복사 생성자C++/개념정리 2019. 1. 31. 15:34
// 선언class TTcpData06: public TTcpBase{private:TstCode06 m_stData;int __fastcall fnGetDataLen();public:__fastcall TTcpData06();__fastcall TTcpData06(const TTcpData06 *a_pData); //깊은복사 생성자__fastcall ~TTcpData06();}; // 구현__fastcall TTcpData06::TTcpData06(){ZeroMemory(&m_stData, sizeof(m_stData));}//---------------------------------------------------------------------------__fastcall TTcpData06::T..