标题:画一条弧线
取消只看楼主
蓝猪
Rank: 1
等 级:新手上路
帖 子:13
专家分:0
注 册:2007-9-5
 问题点数:0 回复次数:0 
画一条弧线

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

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;
}
运行它为什么会出现这样的错误:Unable to open file "tclasss.lib"

搜索更多相关主题的帖子: 弧线 
2007-09-08 17:09



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-168607-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.222774 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved