Friday, 29 August 2014

C code for closegraph



C code for closegraph

#include<graphics.h>
#include<conio.h>
 
main()
{
   int gd = DETECT, gm;
 
   initgraph(&gd, &gm, "C:\\TC\\BGI");
 
   outtext("Press any key to close the graphics mode...");
 
   getch();
   closegraph();
   return 0;
}

No comments: