Doubt about transforming a recursive function to an iterative

hello, I have a doubt about transforming a recursive algorithm into an iterative, according to something i remember that it could be done with a stack or with a while loop, but I do not remember exactly according to what, does anyone help me?.
Try not to double post. When you post a new topic, try to be as concise as possible so that people can actually understand you.

http://www.cplusplus.com/forum/general/104977/
Topic archived. No new replies allowed.