English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to make shapes using '*', ex: diamonds, triangles, equilateral triangle, hourglass etc.

2007-01-26 09:25:19 · 1 answers · asked by Sammy Baby 1 in Computers & Internet Programming & Design

i dont need complicated ones

2007-01-26 09:57:02 · update #1

1 answers

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-programming.htm



/* Simple example to draw circle */

#include”graphics.h”

#include”conio.h”

void main()

{

int gd=DETECT,gm;

initgraph(&gd, &gm, “c:/tc/bgi “);

circle(330,180,100);

getch();

closegraph();

restorecrtmode();

}

2007-01-26 09:39:22 · answer #1 · answered by ITguru 2 · 0 0

fedest.com, questions and answers