title: C++ Regarding Copying Array to Vector and calling its variable / functions
body: <p>I got a array of this kind</p>
  
  <pre><code>VehicleTwoD *vehicletwod[100];
  </code></pre>
  
  <p>Then i create this vector </p>
  
  <pre><code>vector&lt;VechicleTwoD*&gt; sortVector;
  </code></pre>
  
  <p>Then i did this</p>
  
  <pre><code>//arrayCounter is an integer that record the element count of array vehicletwod
  sortVector.assign(vehicletwod, vehicletwod+ arrayCounter);
  </code></pre>
  
  <p>But now i try call a function of vehicletwod by using</p>
  
  <pre><code>sortVector-&gt;getName();
  </code></pre>
  
  <p>It doesnt work, error message was sortVector does not have such function. how can i retrieve it or its impossible?</p>