Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   C++ (http://www.domainnameforum.org/forumdisplay.php?f=123)
-   -   Towers of Hanoi: recursion question (http://www.domainnameforum.org/showthread.php?t=120153)

C++ 08-27-2010 11:15 PM

Towers of Hanoi: recursion question
 
Good day, I'm having problems seeing how the recursion is working with this program. I've traced it but I don't understand why after if(num >0) is false it returns to the statement following the last function call and then seems to start the recursion again, but backwards? What I see when I...


All times are GMT -4. The time now is 08:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.