have the sumlevel function return the depthTotal rather than printing it
Then at the place where you now call the initial sumlevel, use this return value to print it out.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Recursion HelpThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |