-
Hanoi tower
Hey guys, I need help with a hanoi tower problem... anyone there that can help me? I have the main function but need some of the rest of it. please let me know if you can help me. thanks
here is the main function... I need the rest.
int main()
{
int num_disk, dest;
int disk[30];
GetDisk(num_disk);
GetPosition(num_disk, disk);
GetDest(dest);
move(num_disk, dest, disk);
}
I also need the number of disks to be user input and the positions of the disks to be user input also.... it should print out like 3 --> 1 when position three goes to one and things like that. If anyone has a question feel free to ask, I might know. thanks again! my email address is [email protected] if you can help me. thanks.
-
Have you even tried to build the functions? If so, let us see.
-
Google is your friend.
Quzah.
-
>here is the main function... I need the rest.
This is a tricky way of pretending that you've done some work. Unfortunately for you, we know that when doing the towers of hanoi problem, students are first given the driver and told to write the rest of the program. So let's see some effort on your part and then we'll be more helpful.
-Prelude