Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Array problems to use the Koch L-system rule. (http://www.go4expert.com/forums/array-koch-l-rule-t26357/)

Xoltha 25Jul2011 18:34

Array problems to use the Koch L-system rule.
 
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 25Jul2011 20:04

Re: Array problems to use the Koch L-system rule.
 
Maybe I should use an array of strings instead of characters. . .

What do you suggest?


All times are GMT +5.5. The time now is 23:38.