Cpp クラス デストラクタ 新しいページはコチラ
提供: yonewiki
(→クラス デストラクタ) |
(→クラス デストラクタ) |
||
69行: | 69行: | ||
<syntaxhighlight2 lang="cpp" line> | <syntaxhighlight2 lang="cpp" line> | ||
#include "ctest.h" | #include "ctest.h" | ||
− | + | Ctest::Ctest(int iArraySize){ | |
piValue = new int[iArraySize]; | piValue = new int[iArraySize]; | ||
} | } | ||
− | + | Ctest::~Ctest(){ | |
delete piValue; | delete piValue; | ||
} | } |