Panchita L.

asked • 06/27/21

How to make a Fractal tree in C++ using the graphics.h library

I have to make a fractal tree in Turbo C++ using the graphics.h library through an online compiler. I have certain parameters such as the coordinate of the roots, length/width of the tree trunk, and the formula for the angles of the branches that are reproduced. The main objective is to make a recursive function to draw the branches. I am a bit confused on how to start this project. I was thinking that I just start by creating a basic fractal tree but how do I do that? Also, do I have to use stacks/queues/binary trees for this project? If I can get some pointers on how to start that would be helpful. Thank you.


1 Expert Answer

By:

Patrick B. answered • 06/28/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.