Recursive Function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sathishkumar2011
    New Member
    • Jan 2007
    • 2

    #1

    Recursive Function

    How will write the code follwing information


    [HTML]parent
    child
    child
    ...
    ...
    child
    sub-child
    sub-child
    .....
    ....[/HTML]
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You cannot seriously expect to get a decent reply on such an open question! You should provide a bit more explanation about what you want to achieve and where this data originates. Is this about an array or whatever data structure?

    Ronald :cool:

    Comment

    • limweizhong
      New Member
      • Dec 2006
      • 62

      #3
      Originally posted by ronverdonk
      You cannot seriously expect to get a decent reply on such an open question! You should provide a bit more explanation about what you want to achieve and where this data originates. Is this about an array or whatever data structure?

      Ronald :cool:
      Is that an object? If it is can just use a recursive function with an object as a parameter, and recursing by calling the same function with the child object (if there's any left)

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Originally posted by limweizhong
        Is that an object? If it is can just use a recursive function with an object as a parameter, and recursing by calling the same function with the child object (if there's any left)
        That is obvious. Same applies to multi-dimensional arrays. But what is it you want to say?

        Ronald :cool:

        Comment

        Working...