home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Towers of Hanoi C++ project...

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2284
Discussions: 200,944, Posts: 2,379,345, Members: 246,306
Old February 21st, 2006, 08:00 PM   Digg it!   #1 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
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)
Attached Files
File Type: txt Towers.txt (5.9 KB, 555 views)
File Type: zip Towers.zip (48.7 KB, 235 views)
__________________
My photography: Flickr

Lithium Studios - phpBB3, PHP, and Web Development
EXreaction is offline   Reply With Quote
Old February 21st, 2006, 08:04 PM     #2 (permalink)
Moderator
 
phenious's Avatar
 
Join Date: Oct 2001
Location: Winter Park FL
Posts: 5,302
Send a message via AIM to phenious
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
__________________
phenious is offline   Reply With Quote
Old February 21st, 2006, 08:05 PM     #3 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
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
EXreaction is offline   Reply With Quote
Old February 22nd, 2006, 09:33 PM     #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Aus, Gold Coast :)
Posts: 802
Send a message via ICQ to exally
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
exally is offline   Reply With Quote
Old February 22nd, 2006, 10:32 PM     #5 (permalink)
Ultimate Member
 
elmers's Avatar
 
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
elmers is offline   Reply With Quote
Old February 23rd, 2006, 04:15 PM     #6 (permalink)
SoMuchAnime-SoLittleTime
 
EXreaction's Avatar
 
Join Date: Aug 2003
Location: Plymouth, WI
Posts: 14,983
Blog Entries: 1
Send a message via MSN to EXreaction
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.
EXreaction is offline   Reply With Quote
Old July 23rd, 2008, 01:22 AM     #7 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 1
Smile
Thank you vaey much

Hello sir, Can i have the header file for the towers of hanoi,,,,,,,,,, please help me
knishe is offline   Reply With Quote
Old August 19th, 2009, 09:20 AM     #8 (permalink)
Junior Member
 
Join Date: Aug 2009
Posts: 2
Smile
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.
vallanedmund is offline   Reply With Quote
Old August 21st, 2009, 04:43 AM     #9 (permalink)
Junior Member
 
Join Date: Aug 2009
Posts: 2
tower of Hanoi

well i have created myself a tower of hanoi program .check it and if ther are any bugs repot it
Attached Files
File Type: zip Tower of Hanoi.zip (15.5 KB, 58 views)
vallanedmund is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
one monitor two towers ASUS MAN General Tech Discussion 2 March 10th, 2005 01:04 AM
Discovered papers: Hanoi directed Kerry implexant IMO Community 47 October 29th, 2004 04:07 PM
Another document ties Kerry to Hanoi implexant IMO Community 18 October 28th, 2004 01:01 PM
WTB: Microsoft Project or other Project-Management Software Blac Traders Forum: Buy, Sell, Trade 0 March 14th, 2004 12:35 PM
Kerry and Hanoi Jane: the truth wallie_x IMO Community 54 February 29th, 2004 01:41 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (163)
The disrespect of Obama by Russian .. (17)
Is It Just Me? (2919)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (11)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)


All times are GMT -4. The time now is 06:13 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28