码迷,mamicode.com
首页 > 其他好文 > 详细

C 实战练习题目63

时间:2020-07-04 19:13:49      阅读:58      评论:0      收藏:0      [点我收藏+]

标签:实战   分享   ref   span   class   阅读   getc   lips   习题   

题目:画椭圆ellipse(在TC中实现)。

程序分析:无。

程序源代码:

 1 #include "stdio.h"
 2 #include "graphics.h"
 3 #include "conio.h"
 4 int main()
 5 {
 6     int x=360,y=160,driver=VGA,mode=VGAHI;
 7     int num=20,i;
 8     int top,bottom;
 9     initgraph(&driver,&mode,"");
10     top=y-30;
11     bottom=y-30;
12     for(i=0;i<num;i++)
13     {
14         ellipse(250,250,0,360,top,bottom);
15         top-=5;
16         bottom+=5;
17     }
18     getch();
19 }

感谢你的阅读,请用心感悟!希望可以帮到爱学习的你!!分享也是一种快乐!!!请接力。。。

点击查看原文,谢谢!

C 实战练习题目63

标签:实战   分享   ref   span   class   阅读   getc   lips   习题   

原文地址:https://www.cnblogs.com/kangyifan/p/13235778.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!