Click here to Skip to main content
15,897,181 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have made a program using C++. This program implements "tower of hanoi puzzle" in which we have three towers and a number of disks.

The objective of the puzzle is to move the entire stack(disks) from first tower to another tower, obeying the rules of the game.

I represented the disks using rectangle(); function. But I want to show the disks as rounded disk, not as a rectangle. Is there a built in function in "graphics.h" library to draw a rounded disk??

I am using dev C++
Posted
Updated 15-Jul-15 23:12pm
v2

1 solution

Checking the documentation is usually the best way to find out. Most graphics libraries use the ellipse type to draw circles.
 
Share this answer
 

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