C graphics programming

5 (100%) 1 vote

C graphics programming

 

 

#include <graphics.h>

 

#include <conio.h>

 

 int main()

 

{

 

    int gd = DETECT, gm;

 

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

 

   outtextxy(10, 20, “Graphics programming is fun!”);

 

   circle(200, 200, 50);

 

    setcolor(BLUE);

 

    line(350, 250, 450, 50);

 

    getch();

 

    closegraph( );

 

    return 0;

 

}
For any query or issue, feel free to discuss on http://discuss.eduguru.in
%d bloggers like this: