|
-
January 23rd, 2011, 04:38 PM
#4
Re: Can't figure out how to structure my loops
Kender is right; I didn't get that from your explanation, but if your data is structured like a tree, recursion simplifies things a lot. Anything you can do with recursion you can do with iterative loops, but the former really shines when parsing tree like data and using loops in this case is difficult and makes the code hard to follow.
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
|