Q:

fillpoly function in c using graphics.h

0

fillpoly function in c using graphics.h

Declaration: void drawpoly( int num, int *polypoints );

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <graphics.h>
#include <conio.h>

main()
{
   int gd=DETECT,gm,points[]={320,150,440,340,230,340,320,150};

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

   fillpoly(4, points);

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now