Array problems to use the Koch L-system rule.

Discussion in 'C' started by Xoltha, Jul 25, 2011.

  1. Xoltha

    Xoltha New Member

    Joined:
    Jul 18, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I have a problem with recusion for my project. This is what it must do:

    when my funtion is executed once it should output a char 'F' then when it recurs once again, every F ---> F+F-F-F+F so that when it recurs 3 times the output becomes
    F+F-F-F+F + F+F-F-F+F - F+F-F-F+F - F+F-F-F+F + F+F-F-F+F

    help.
     
  2. Xoltha

    Xoltha New Member

    Joined:
    Jul 18, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Maybe I should use an array of strings instead of characters. . .

    What do you suggest?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice