c中的closegraph函数
2021-07-07 11:59:16
深夜i
--
--
c
中
的
c
l
o
s
e
g
r
a
p
h
函
数
closegraph 函数关闭图形模式,释放图形系统分配的所有内存,并将屏幕恢复到调用 initgraph 之前的模式。
声明:void closegraph();
closegraph的C代码
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\TC\\BGI");
outtext("Press any key to close the graphics mode...");
getch();
closegraph();
return 0;
}
上一篇:
idea打包java可执行jar包
下一篇:
c中的drawpoly函数
评论区