Towers of Hanoi C++ project...  | |
February 21st, 2006, 08:00 PM
|
#1 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,983
| Towers of Hanoi C++ project...
Done with anouther big one(well, big for the class so far)...
Was wondering if anyone would want to try it out...and report any bugs if you find them...
the .txt is the source(ya, it is a friggin mess...dang if statements) |
| |
February 21st, 2006, 08:04 PM
|
#2 (permalink)
| | Moderator
Join Date: Oct 2001 Location: Winter Park FL
Posts: 5,302
|
Recursive Functions for the win! At least that is the only way I know how to solve it... rather knew.... hehe... my Sidekick wont run your stuff  |
| |
February 21st, 2006, 08:05 PM
|
#3 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,983
|
Ya, it is kinda a mess with the functions...I didn't balence it out very well...but it works.
Can sidekicks even run .exes? :s |
| |
February 22nd, 2006, 09:33 PM
|
#4 (permalink)
| | Senior Member
Join Date: May 2003 Location: Aus, Gold Coast :)
Posts: 802
|
lol just don't do it for 64 i think it is, the world will end...
nah there is a way to do it using some Search algorithm that i too have forgotten |
| |
February 22nd, 2006, 10:32 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Sep 2003 Location: Philadelphia
Posts: 1,484
|
This is really a proggy that lets a person play hanoi towers huh?
I ask because if you mention Hanoi Towers most people assume its about the recursive algorithm used to solve it. But I guess thats chapter 7?
__________________ Buy the ticket, take the ride. - Hunter S. Thompson |
| |
February 23rd, 2006, 04:15 PM
|
#6 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,983
| Quote: |
Originally Posted by elmers This is really a proggy that lets a person play hanoi towers huh?
I ask because if you mention Hanoi Towers most people assume its about the recursive algorithm used to solve it. But I guess thats chapter 7? | Yep, lets you play using up to 7 rings(for some reason, if you use more, you get a major error...the PegClass file I included must have a limit...I am to lazy to check it out though)
Beats me.  |
| |
July 23rd, 2008, 01:22 AM
|
#7 (permalink)
| | Junior Member
Join Date: Jul 2008
Posts: 1
| Thank you vaey much
Hello sir, Can i have the header file for the towers of hanoi,,,,,,,,,, please help me |
| |
August 19th, 2009, 09:20 AM
|
#8 (permalink)
| | Junior Member
Join Date: Aug 2009
Posts: 2
| help
can you post the full program it is difficult to check .if you could post these 3 header files it would be easy to check it
#include <lvp\pegclass.h>
#include <lvp\string.h>
#include <utility.h>
Last edited by vallanedmund : August 21st, 2009 at 04:43 AM.
|
| |
August 21st, 2009, 04:43 AM
|
#9 (permalink)
| | Junior Member
Join Date: Aug 2009
Posts: 2
|
well i have created myself a tower of hanoi program .check it and if ther are any bugs repot it |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |