C++ How to copy this array type to a Vector
<p>C++ How to copy this array type to a Vector</p>

<p>I got this array which is of class VehicleTwoD</p>

<p>I declare it this way at main function</p>

<pre><code>VehicleTwod *vechicletwod[100];

//after some computation
//vechicletwod got until [5];
</code></pre>

<p>//now i need do sorting, but i prefer do it in vector. how do i copy the content of vehicletwod into an vector of the same type</p>

<p>I did something like</p>

<pre><code>vector&lt;VehicleTwoD&gt; sortVector;
sortVector = shapetwod;
</code></pre>

<p>but i get some error for no match operator= in sortVector = vehicletwod;</p>

<p>Thanks for all help !</p>
