Other Software > Developer's Corner
C# Palindrom Recursive Program
kyrathaba:
A few months ago I started a project that uses recursion to search for all files in a directory, and all files in each subdirectories, and any files in subdirectories of those subdirectories ... ad nauseum. I haven't finished it, but what's there, works. Might help, because shows an example of C# code for recursion.
http://www1.webng.com/bowrsanryld/non_bowrsanryld/csharp/source%20code/RecursiveDirSearch.zip
tinjaw:
A couple of hints.
* Your recursive function is going to be built around the part of your code that is repeated. So lines 16 through 20 is what you should be looking at.
* There has to be some test to know when to stop recursing. So lines 16 through 20 should be where you look.
* In order to do recursion you need a section of code to call itself, so put it in a function.
How's your progress?
jeremejazz:
er.. can i post a C Program version?... its C language also right?... :-[
cool.. my classmate also used a recursion in his palindrome..
nosh:
- Post deleted.
Navigation
[0] Message Index
[*] Previous page
Go to full version