|
-
October 21st, 2009, 11:56 AM
#4
Re: Recursion Help
 Originally Posted by simonsayz27
I passed in, by reference, a variable "sum" and set it to 0...
This actually fixes an error in your original code: it would accumulate that total over multiple calls (never resets depthTotal to 0).
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|