Dynamic Structure in C++
<pre><code>struct testing
{
    char lastname[20];        
};

testing *pt = new testing;            
pt-&gt;lastname = "McLove";
</code></pre>

<p>and I got </p>

<blockquote>
  <p>56 C:\Users\Daniel\Documents\Untitled2.cpp incompatible types in
  assignment of 'const char[7]' to 'char[20]'</p>
</blockquote>

<p>Why ?</p>

<p>Thanks in advance.</p>
