CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: hanoi

  1. #1
    Guest

    hanoi

    towers of hanoi source code in VB??


  2. #2
    Join Date
    Oct 1999
    Location
    CA
    Posts
    91

    Re: hanoi

    Well, since your towers are stacks, just make three stacks (First in, last out) containing the variables that describe the disks. Then as the user wants to move a disk, just grab the next one in the stack, compare it's size to the disk on top of the stack the user wants to move it to, then move variable if the disk will fit.

    Brewguru99

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured