Towers of Hanoi (need help)

This is a discussion on Towers of Hanoi (need help) within the C++ Programming forums, part of the General Programming Boards category; I have a current project that is available for extra work in one of my classes right now involving c++. ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    3

    Towers of Hanoi (need help)

    I have a current project that is available for extra work in one of my classes right now involving c++. I have to make a simple Towers of Hanoi project that asks for a multiple for the towers and then does the calculations. It has to show each step as to where it moves each piece and I have no clue where to start. My prof said that it can be done in a simple few lines but I have no clue how he could do it. If anyone has experience in this example or has any clue how to start this it would be of great help! Thank you

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Google it first.

    [edit]No offense intended.
    Last edited by Dave_Sinkula; 01-30-2006 at 08:51 PM. Reason: Added smiley as well.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    This is a very common problem given to programming students. Although the suggestion may seem rude, your best results will certainly come from searching. Not only Google, but searching this forum will yield some very useful information.

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    3
    alright thank you...Sorry for not searching first. I took no offense to either posts.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. towers of hanoi - what is wrong with this code?
    By kanesoban in forum C Programming
    Replies: 4
    Last Post: 09-17-2007, 01:20 PM
  2. towers of hanoi problem
    By aik_21 in forum C Programming
    Replies: 1
    Last Post: 10-02-2004, 01:34 PM
  3. Towers of Hanoi
    By cyberCLoWn in forum C++ Programming
    Replies: 6
    Last Post: 01-15-2004, 03:28 PM
  4. Towers of Hanoi, special output.
    By spoon_ in forum C Programming
    Replies: 3
    Last Post: 03-15-2003, 05:08 PM
  5. Towers of Hanoi
    By janehung in forum C Programming
    Replies: 12
    Last Post: 01-07-2002, 05:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21