C语言图形库函数.docxVIP

  • 22
  • 0
  • 约1.01万字
  • 约 12页
  • 2019-09-14 发布于广东
  • 举报
1?初始化图形系统 函数名:ini tgraph 功能:初始化图形系统 用 法:void far initgraph(int far *graphdriver, int far *grciphmode, char far *pathtodriver); 程序例: ^include graphics. h ★include stdlib. h ^include stdio. h #includo conio? h int main(void) { /* request auto detection */ int gdriver = DETEC1\ gmode, errorcode; /* initialize graphics mode */ initgraph(gdriver, gmode,“); /* read result of initialization */ errorcode 二 graphresult(): if (errorcode != grOk) /* an error occurred */ ( prin tf (Graphics error: %s\n: grapherrormsg (errorcode)): printf(Press any key to halt:): getch (); exi t(1); /* return wi th error

文档评论(0)

1亿VIP精品文档

相关文档