Click here to Skip to main content
15,898,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to write a c program for the tower of hanoi problem ?
Posted
v3

1 solution

Please check C code for Towers of Hanoi[^].
You will find the implementation.

But before asking question, you need to google[^] and find what are the useful links available for you. You will find tons of solution links.

Thanks...
Happy coding. :)
 
Share this answer
 
Comments
enhzflep 7-Nov-12 1:37am    
That's my 2. The intention seems good, so avoids my 1.

Reasons for my vote?
■ supritha ravikumar asked 'how to write a code for hanoi tower' - you gave a full solution
■ problems of this nature are almost exclusively homework. This further reinforces the need for an explanation of the required approach. Full solutions are actually counter productive in these instances.
■ There are solutions posted that are either wrong, misleading or just plain bad - these deserve a 1.
■ There are solutions that are truly mediocre - by definition, deserving a 3.

Finally, just as Solutions may be edited - so can votes. :nudge-nudge: (I don't like handing out low votes. I really LOVE revoting higher because a solution has been improved or includes factual correction)
A good explanation of a possible approach and considerations to be made would earn my +5.
Hi enhzflep,

Thanks enhzflep for your comments...
I understand that I need to explain the solution a little bit more.
As it is the quick answer section, so I posted links and adviced the OP to concentrate on googling and find the solution on his/her own. It was not one specific question, so I did not explained much.

I am sorry for that.
But the answer is now accepted by the OP. I think the solution given in that link worked fine and did not mislead the OP.
Sorry again if I done mistakes.

But you can think of upvoting again as this is accepted... :P :P :P

Thanks...
Tadit.
enhzflep 7-Nov-12 2:49am    
Hi Tadit,
You're welcome - perhaps I was too hasty. The fact that it has been accepted should not be overlooked. I did note the google link(complete with search terms), that's much better than just "use google" like so many people say.

I don't think that you should be penalized for posting this (accepted) solution. I do however stand by my assertion that an explanation of an approach would constitute a really good answer.

To that end, I feel that 5 is too high. I also feel that other answers which don't quite deserve a 5 must receive a 4. As such I would feel a 4 for this solution would be unfair to those that just missed out on a 5.

Simon.
Thanks Simon...
Hi supritha,

Thanks for accepting the solution.

Regards,
Tadit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900