Converting an array of int, to a vector of int in c++
<p>I have an array something like this</p>

<pre><code>int A[] = {1, 2, 3, 4, 5, 6, 7}
vector&lt;int&gt; vec;
int index = 0;
for(int i = 0; i &lt; A.size(); i++) {
if(some condition) {
    index = i;
}
**vec(A + index, i);**
}
</code></pre>

<p>how to convert an array to vector starting from particular index, like above ?</p>