recursive functions c++
<p>I am writing a recursive function that has two funtions, one to add numbers from 0 to 10 and then the other to retrieve the first function return value and subtract it until it reaches 0. Although, my code only adds them up 10 for the calls. Can someone shed some light. thanks.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
using namespace std;

static int recurse(int count)
{

   cout &lt;&lt; count &lt;&lt; "\n";

   if (count &lt; 10)
   {
      recurse(count + 1);
   }

   int aRet = count;
   return count;
}

static int minusRecusive(int minus)
{

   recurse(1);
   cout &lt;&lt; "\n\t" &lt;&lt; minus;
   int a =0;
   minus = recurse(a);

   if (minus &lt; 1)
   {
      recurse(minus - 1);
   }

   return minus;
}


int main()
{
   minusRecusive(1);
   cin.get();
}
</code></pre>
