Click here to Skip to main content
15,064,915 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
any one have idea how to implement tower of hanoi problem in c..
i know the logic but i want to know hot graphically develop it in c........
Posted
Comments
[no name] 1-Aug-12 12:52pm
   
What exactly are you looking for? The "idea" would be to draw the graphics for it. Are you wanting someone to code this for you? Are you doing this in Windows? Linux? Some other? What have you tried? What specific problem are you having?
Kenneth Haugland 1-Aug-12 12:56pm
   
Are you sure you mean C and not C++? I have only used C for microcontrollers, so your question seems odd...
   
Not a question. You should tell us you platform and a UI or presentation library you want to use.
--SA
Anand.genius 1-Aug-12 13:33pm
   
yes in C...on windows platform... i m try to draw graphic for each movement of disk.....when it moves...

1 solution

You'll have to learn something like OpenGL[^], GDI[^], or DirectX[^] if you're working in C.

For a simple thing like this, you might be better off creating text "graphics" on the command line.
   
Comments
Kenneth Haugland 1-Aug-12 13:00pm
   
Lol, I think the Tower of Hanoi is a mathematical game....
http://en.wikipedia.org/wiki/Tower_of_Hanoi
lewax00 1-Aug-12 13:07pm
   
I know exactly what it is. And it would be very easy to make a text representation of it. Much easier than learning a graphics system.
Kenneth Haugland 1-Aug-12 13:10pm
   
Yepp. I would rather use WPF's 3D engine with either C# or VB but thats me.... C/C++ graphics can be nasty buisiness :)
   
You are perfectly right here. My 5.
--SA

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