CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Franco527

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    2,105

    Re: Towers of Hanoi help

    Thanks for the help. I was able to fix it and get the right answer with this code:



    void towersHanoi(int disks, int start, int middle, int end)
    {
    if(disks>0)
    {
    towersHanoi(disks-1,...
  2. Replies
    7
    Views
    2,105

    Towers of Hanoi help

    Hello everyone,

    I am trying to write program that solves the Towers of Hanoi game using recursion. I am suppose to get the input from the user about how many discs, the start peg, and end peg.
    ...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured