请教下win-tc运行以下程序时为何窗口闪一下就关闭了,看不到结果啊
#include<graphics.h>#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
int main (void)
{int gdriver=DETECT,gmode;
int poly[12];
initgraph(&gdriver,&gmode,"");
poly[0]=0;
poly[1]=20;
poly[2]=40;
poly[3]=20;
poly[4]=40;
poly[5]=40;
poly[6]=20;
poly[7]=40;
poly[8]=10;
poly[9]=35;
poly[10]=0;
poly[11]=20;
drawpoly(6,poly );
getch();
closegraph();
return 0;
}