C program for cleardevice | cleardevice attached in C

C program for cleardevice | cleardevice attached in C



#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;
}


No comments:

Post a Comment