About memory and delete object in c++
<p>I will give some examples and explain. First, I declare some object like</p>

<p><code>CString* param = new CString[100]</code></p>

<p>And when I declare this one, my memory would increase a little bit because it's some implemented string. Then I store this object in some list of CString just like</p>

<pre><code>List&lt;CString&gt; myList = new List&lt;CString&gt;; // new list of CString

myList.add(param);
</code></pre>

<p>This is my question: I wanna know, when I delete myList, my param isn't deleted, right? And memory in param still exists. </p>

<p>Do I misunderstand?</p>
