c语言函数大全 chm,【oeasy丨c语言丨函数】C语言库函数使用大全CHM版
該樓層疑似違規(guī)已被系統(tǒng)折疊?隱藏此樓查看此樓
函數(shù)名: arc
功 能: 畫一弧線
用 法: void far arc(int x, int y, int stangle, int endangle, int radius);
程序例:
#include
#include
#include
#include
int main(void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy;
int stangle = 45, endangle = 135;
int radius = 100;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
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 an error code */
}
midx = getmaxx() / 2;
midy = getmaxy() / 2;
setcolor(getmaxcolor());
/* draw arc */
arc(midx, midy, stangle, endangle, radius);
/* clean up */
getch();
closegraph();
return 0;
}
總結(jié)
以上是生活随笔為你收集整理的c语言函数大全 chm,【oeasy丨c语言丨函数】C语言库函数使用大全CHM版的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: raid5 合适 多少块硬盘_raid1
- 下一篇: VM VirtualBox 安装Wind