Cpp クラス デストラクタ 新しいページはコチラ
提供: yonewiki
(→5行目) |
(→クラス デストラクタ) |
||
55行: | 55行: | ||
class Ctest{ | class Ctest{ | ||
private: int* piValue; | private: int* piValue; | ||
− | private | + | private: int iArraySize; |
− | void Ctest::Ctest(int iArraySize); | + | public void Ctest::Ctest(int iArraySize); |
− | void Ctest::~Ctest(); | + | public void Ctest::~Ctest(); |
} | } | ||
</syntaxhighlight2> | </syntaxhighlight2> | ||
84行: | 84行: | ||
delete pCtest; | delete pCtest; | ||
− | return | + | return true; |
} | } | ||
</syntaxhighlight2> | </syntaxhighlight2> |