Thread
:
help with assignment code returns no answer
View Single Post
Dec 19th, 2006, 11:45 AM
#
6
Narue
Professional Programmer
Join Date: Sep 2005
Posts: 419
Rep Power:
3
>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?
(
Toggle Plain Text
)
solve(i++ ,j , sum_temp); solve(i++, j++, sum_temp);
solve(i++ ,j , sum_temp); solve(i++, j++, sum_temp);
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue
View Public Profile
Visit Narue's homepage!
Find More Posts by Narue