title: Adding Integers In A Vector
body: <p>Ok, I have another challenge. I have a question that asks me to "Read a set of integers into a <code>vecto</code>r. Print the sum of each pair of adjacent elements . Change your program so that it prints out the sum of the first and last elements, followed by the sum of the second and second-to-last, and so on."</p>
  
  <p>Currently I have managed to get it to add consecutive numbers, not exactly in pairs, but as close as I can get it.</p>
  
  <p>The only operators I have learnt thus far for <code>vectors</code>, and what the question wants me to use are: <code>v.empty();</code> <code>v.size();</code> <code>v.push_back(t);</code> <code>v[n];</code> <code>v1 = v2;</code> <code>v1 = {a,b,c...};</code> <code>v1 == v2;</code> <code>v1 != v2;</code> <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>&gt;=</code></p>
  
  <p>Here is my code as it stands now:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  
  using std::string; using std::vector; using std::cout; using std::cin; using std::endl;
  
  int main ()
  {
      vector&lt;unsigned&gt; numbers {5, 6, 7, 8, 9, 10, 11};
      unsigned sum;
  
      decltype(numbers.size()) count;
      for (count = 0; count &lt; numbers.size(); ++count){
          sum = (numbers[count]++) + (numbers[count]);
          cout &lt;&lt; sum &lt;&lt; " ";
      }
  }
  </code></pre>
  
  <p>So I can get it to add 5+6; 6+7; 7+8 etc... but as for each pair and all the rest, not 100% sure where to start. Any guidance will be greatly appreciated!</p>