how to make shapes using '*', ex: diamonds, triangles, equilateral triangle, hourglass etc.
C language! shapes!?
I hope you are taking about basic 2D shapes. With line drawing or drawing pixels you can input formulas for shapes and get desired results
try following code, also have a look to this page for more explaination.
http://www.onecore.net/turbo-c-graphics-...
/* Simple example to draw circle */
#include”graphics.h”
#include”conio.h”
void main()
{
int gd=DETECT,gm;
initgraph(%26amp;gd, %26amp;gm, “c:/tc/bgi “);
circle(330,180,100);
getch();
closegraph();
restorecrtmode();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment