graphresult是一種返回最後一次不成功圖形錯誤代碼的C語言函式名、
基本介紹
- 外文名:graphresult
- 屬性:C語言函式名
- 功能:返回最後一次不成功圖形錯誤代碼
- 用 法:int far graphresult(void);
graphresult是一種返回最後一次不成功圖形錯誤代碼的C語言函式名、
int far graphresult(void);程式例:#include #include #include #include int main(void){ /* request auto detection */ int gdriver = DETECT, gmode, errorcode;/* initialize graphics and local variables */ initgraph(&g...
/* read result of initialization */ errorcode = graphresult();if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch...
/* read result of initialization */ errorcode = graphresult();if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch...
/* read result of initialization */ errorcode = graphresult();if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch...
若用非法參數調用setlinestyle()函式,那么graphresult()會返回錯誤代碼,並且當前線型繼續有效。Turbo C提供的線型與線寬定義在頭檔案graphics.h中,表1-10和1-11分別列出了參數的取值與含義。表1-10 線型 表1-11 線寬 這個函式的...
errorcode = graphresult(); /* an error occurred */ if (errorcode != grOk){ printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch(); exit(1); /* terminate with ...
/* read result of initialization */ errorcode = graphresult();if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch...
errorcode = graphresult();if (errorcode != grOk) /* an erroroccurred */{printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch();...
errorcode = graphresult();if (errorcode != grOk) /* an erroroccurred */{printf("Graphics error: %s\n", \grapherrormsg(errorcode));printf("Press any key to halt:");getch();...