1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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