win-tc编译成功但看不到结果(有getch())帮忙看看啊
题目:画椭圆ellipse 1.程序分析:
2.程序源代码:
#include "stdio.h"
#include "graphics.h"
#include "conio.h"
main()
{
int x=260,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<num;i++)
{
ellipse(x,250,0,360,top,bottom);
top-=5;
bottom+=5;
}
getch();
}
这是win-tc自带的例子,编译成功后一闪而过
[[it] 本帖最后由 skyweiyao 于 2008-9-14 12:15 编辑 [/it]]