资源简介
graph.c
代码片段和文件信息
#include “graph.h“
int gresult;
int initgraphmode(void)
{
int gd gm;
detectgraph(&gd &gm);
initgraph(&gd &gm ““);
if( (gresult = (int)graphresult()) != (int)grOk )
return 0;
else
return 1;
}
char * getgrapherrmsg(void)
{
return grapherrormsg(gresult);
}
void drawbox(int x int y int color)
{
int basex = XPosition;
int basey = YPo
评论
共有 条评论