其他分享
首页 > 其他分享> > C 练习实例63

C 练习实例63

作者:互联网

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

程序分析:无。

程序源代码:

#include "stdio.h"
#include "graphics.h"
#include "conio.h"
int main()
{
    int x = 360, y = 160, driver = VGA, mode = VGAHI;
    int num = 20, i;
    int top, bottom;
    initgraph(800,800);
    top = y - 30;
    bottom = y - 30;
    for (i = 0; i < num; i++)
    {
        ellipse(250, 250, 0, 360);
        top -= 5;
        bottom += 5;
    }
    _getch();
    return 0;
}

标签:30,实例,bottom,int,top,练习,63,250,include
来源: https://blog.csdn.net/qq_51701007/article/details/122245177