69,382
社区成员
发帖
与我相关
我的任务
分享
#include <graphics.h>
#include <stdio.h>
#include <conio.h>
main()
{
int gmode = -1;
int gdriver = -1;
int init_result = -1;
initgraph( &gmode, &gdriver, "d:\\bgi" );
init_result = graphresult();
if (grOk != init_result)
{
printf("init error, the error code is: %d", init_result);
getch();
return -1;
}
else
{
printf( "graph init OK.\n" );
printf( "graph driver is: %d, graph mode is: %d\n", gdriver, gmode);
}
getch();
return 0;
}