Function to check if any combination of numbers in a vector will add up to an int?
<p>To start with, I'm looking for something simple and easy to understand rather than the most efficient.   </p>

<p>I am trying to create a function that will take in a <code>vector</code>, and an <code>int</code>. This function should return <code>true</code> if any numbers in the vector can add up to the int.</p>

<p>The vector will start with the numbers <code>1,2,3,4,5,6,7,8,9,10</code> in it, and throughout the program numbers will be removed. There will be no duplicates of numbers.</p>

<p>The <code>int</code> can be any number from 2 through 12.</p>

<p>Some examples:  </p>

<ul>
<li><code>vector = { 2,3,4,5 } int = 7;</code> function returns <code>true</code> because <code>3 + 4 = 7</code>.    </li>
<li><code>vector = { 1,5,8 } int = 7;</code> function returns <code>false</code> because none of these numbers can add to 7.  </li>
<li><code>vector = { 3,6 } int = 3;</code> function returns <code>true</code> because <code>3 = 3</code>.  </li>
<li><code>vector = { 5 } int = 2;</code> function returns <code>false</code> because five cannot add to two.  </li>
</ul>

<p>This is the very last function I need to finish a game I am working on. I feel like I'm missing an easy solution, but I'm not sure. Can anyone show me how to do this, or point me in the right direction of how to solve this problem? Thank you in advance.</p>
