- 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
您可能关注的文档
最近下载
- 用水搭伙协议书范本.docx VIP
- 诺瓦科技LED显示屏视频处理器VS2用户手册.docx
- b型流感嗜血杆菌疾病的疫苗预防效果.pptx VIP
- VDA6.3-2023过程审核检查表(应用版).xls VIP
- GB50854-2013 房屋建筑与装饰工程工程量计算规范.pdf VIP
- 2023年入党政审调查表.doc VIP
- 药店监督检查课件.pptx VIP
- 22G101与16G101钢筋平法图集对比变化汇总.docx VIP
- (2026秋新版)教科版五年级科学上册1.4《用光学显微镜观察》PPT课件.pptx VIP
- (2026秋新版)教科版五年级科学上册1.3《用简易显微镜观察》 PPT课件.pptx VIP
原创力文档

文档评论(0)