View Single Post
Old Dec 19th, 2006, 11:45 AM   #6
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
>I think this will work
If by "work" you mean stack overflow then yes, it works perfectly. Tell me, what are the values of i and j after these recursive calls?
solve(i++ ,j , sum_temp);
solve(i++, j++, sum_temp);
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote