Mar 6, 2015 at 4:43am UTC
You loop n times. You increment count by 1 on each loop. Therefore, count is incremented n times... so it equals n...
Mar 6, 2015 at 4:46am UTC
Thanks. The one where you count permutations. It works but I want to
know how to make it count 1 to n-1 without doing anything in the main
Mar 6, 2015 at 4:48am UTC
Is that for my permutation one? Because I need 1 to n-1 so if I input 4 then the count should be 4
Mar 6, 2015 at 4:48am UTC
I'm not sure what you're asking, could you try rephrasing?
Mar 6, 2015 at 5:01am UTC
If you check.out the question I posted it'll be clear
Mar 6, 2015 at 5:03am UTC
Back to partitions. After I convert the int to string where can I court my output? Can I set that last recursion call equal to a string and then cout that way?
Sorry for the typos. Had to switch to my tablet
Mar 6, 2015 at 5:08am UTC
The code already outputs as it recurses.