Cpp Delete演算子 新しいページはコチラ
提供: yonewiki
(ページの作成:「<table class="mbox-small" style="border:1px solid #aaa; background-color:#f9f9f9; width:22em;" id="RealTitleBanner"> <tr> <td style="width:1px;"></td> <td class="mbox-tex...」) |
(→delete演算子) |
||
11行: | 11行: | ||
例1 | 例1 | ||
+ | <syntaxhighlight lang="cpp"> | ||
+ | int *pnReturnValue; | ||
+ | pnReturnValue = new int; | ||
+ | … | ||
+ | delete pnReturnValue; | ||
+ | </syntaxhighlight> |