title: How to remove the elements of an array within a certain range
body: <p>I have a one-dimensional array of size 10. I want to remove the elements from 5 to 8. Can somebody give me an example of how to do it? This is how I defined my array but I have no idea about how to start.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt; 
  using namespace std;
  
  int array[10] = {1,2,3,4,5,6,7,8,9,10};
  </code></pre>
  
  <p>So, the output should be 1,2,3,4,5,10. (index 0 = element 1)</p>
  
  <p>Thanks</p>