c++ array all possible combination
<p>My problem is that I have array of 14 digits I want to have a program that give all possible </p>

<p>combination within 8 digits that sum to <strong>40</strong></p>

<p>for example  </p>

<p>14 digits are <code>1,7,7,4,6,5,5,2,4,7,10,3,9,6,</code></p>

<p>combination should like this</p>

<pre><code>6+5+6+7+2+3+2+9=40

7+7+7+7+6+4+1+1=40
</code></pre>
