grapherrormsg


/*
Write a program in C for grapherrormsg
*/

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

main()
{
int gd, gm, errorcode;

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

errorcode = graphresult();

if(errorcode != grOk)
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
 

printf("Press any key to exit.");
 

getch();
 

exit(1);
}

getch();
 

closegraph();
 

return 0;
}

Post a Comment

0 Comments