資源簡介
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
評論
共有 條評論