Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Scytale

binary trees

This topic is 6158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

okay, i''ve set up a tree: struct node { node *left,*right; char *name; } and i want to draw it from top-down in the dos version of allegro the names are all ~4 characters long but i don''t want to specify a field length. my attempt doesn''t space the nodes very nicely and it randomly skips some of them any suggestions? like a new algorithm or an example? thanks!

Share this post


Link to post
Share on other sites
Advertisement
We can''t give you a new algorithm until we''ve seen the old one...

Your node structure is fine.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!