title: C++ insert vector into vector overwrite not push_back
body: <pre><code>vector &lt;char&gt; grid(10);
  for (int temp1 = 0; temp1 &lt; grid.size(); temp1++) {
      grid[temp1] = 'e';
  }
  vector &lt;char&gt; ship(3);
  for (int temp2 = 0; temp2 &lt; grid.size(); temp2++) {
      ship[temp2] = 'f';
  }
  int location = 2;
  return 0;
  </code></pre>
  
  <p>Say I have two vectors: grid and ship. I want to insert ship into grid and overwrite the original value based on the location I choose. For example, if location is 2, I should get 
  eefffeeeee
  If location is 5, I should get eeeeefffee</p>