recursion using queues

can someone here give me a super simple program code that implements recursion using queues?
thanks in advance :)
Last edited on
What is your goal?

Do you need to understand how recursion or queues work?
Or could you show us an attempt of you trying to accomplish your task?
exactly. how does recursion works?
It's as simple as a function calling itself.
http://www.cplusplus.com/doc/tutorial/functions2/ Scroll down to Recursivity.
It is not a queue (FIFO). It's a stack (LIFO)
does it mean that i can't use queues?
Topic archived. No new replies allowed.