C中画椭圆的工具一般最多五个参数,而下面的函数中却有六个,请帮忘解释下每个参数的含义:ellipse(250,25

C中画椭圆的工具一般最多五个参数,而下面的函数中却有六个,请帮忘解释下每个参数的含义:ellipse(250,25
#include "stdio.h"
#include "graphics.h"
#include "conio.h"
main()
{
int x=360,y=160,driver=VGA,mode=VGAHI;
int num=20,i;
int top,bottom;
initgraph(&driver,&mode,"");
top=y-30;
bottom=y-30;
for(i=0;i
帮忙解释下ellipse(250,250,0,360,top,bottom);这个函数中的每个参数的含义,
deBeast 1年前 已收到1个回答 举报

kunbest 幼苗

共回答了18个问题采纳率:94.4% 举报

ellipse(250,250,0,360,top,bottom);
参数从左往右分别是:
圆心x坐标,圆心y坐标,起始角度,终止角度,x轴半径,y轴半径

1年前

4
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.033 s. - webmaster@yulucn.com