C中程序一运行就关闭了?
include "graphics.h"#include "conio.h"
#include "stdio.h"
#define PATH "c:\turboc2"
void main()
{
int i,gdriver=VGA,gmode=VGAHI;
initgraph(&gdriver,&gmode,PATH);
line(150,100,100,300);
getch();
closegraph();
}
这段程序一运行就关闭了怎么回事?看不到图形窗口,为什么呢?