Monday, March 3, 2014

Graphics example in C

#include <graphics.h>
#include <conio.h>
 void main()
{
    int gd = DETECT, gm;

    initgraph(&gd, &gm,"C:\\TC\\BGI");

    outtextxy(10,20, "Graphics source code example.");

    circle(200, 200, 50);

    setcolor(BLUE);

    line(350, 250, 450, 50);

    getch();
    closegraph( );
    return 0;
}

No comments:

Post a Comment