• entries
38
87
• views
34587

# flashisfaction

412 views

Dammit! I should get a flash blocker. someone gave me a link to this cryptic little game. Guaranteed to drive you mad. I got as far as getting the little guy to come out the house on the left and get blown up by a mine.

I've been getting to grips with making parse trees in delphi, and getting used to recursive functions. Recursive functions seem like some sort of black magic to me. I mean this to put out a parse tree in order..

// PRE: True// POST: Prints parse tree to screenPROCEDURE Display_Tree_R(Tree:TRecTree);BEGIN  IF NOT (RecTree.Q_Empty(Tree)) THEN  BEGIN    Display_Tree_R(Get_Left(Tree));    WRITELN(Get_Root(Tree));    Display_Tree_R(Get_Right(Tree));  END;END;

And not a for loop in sight.

## 1 Comment

Recursive functions have always scared me. I'm afraid if I use them I'll be sucked into a black hole of recursiveness...

## Create an account

Register a new account