Array problems to use the Koch L-system rule.

Xoltha's Avatar, Join Date: Jul 2011
Light Poster
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.
Xoltha's Avatar, Join Date: Jul 2011
Light Poster
Maybe I should use an array of strings instead of characters. . .

What do you suggest?