Posted on Leave a comment

‘C’ Graphics Programming

‘C’ Graphics Programming

  1. #include <graphics.h>
  2. #include <conio.h>
  3. int main()
  4. {
  5.     int gd = DETECT, gm;
  6.     initgraph(&gd, &gm,”C:\\TC\\BGI”);
  7.     outtextxy(10, 20, “Graphics programming is fun!”);
  8.     circle(200, 200, 50);
  9.     setcolor(BLUE);
  10.     line(350, 250, 450, 50);
  11.     getch();
  12.     closegraph( );
  13.     return 0;
  14. }
Leave a Reply

Your email address will not be published. Required fields are marked *