Q:

Cleardevice function in c using graphics.h

0

Cleardevice function in c using  graphics.h

All Answers

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

#include 
#include 

main()
{
   int gd = DETECT, gm;
   initgraph(&gd, &gm, "C:\\TC\\BGI");

   outtext("Press any key to clear the screen.");
   getch();
   cleardevice();
   outtext("Press any key to exit...");
   
   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