以下代码没有任何错误,但不会运行。当我运行它时,屏幕上只有一个闪光。它不提供任何输出。我需要做什么?
#include<graphics.h>
#include<conio.h>
void main()
{
int gd = DETECT, gm;
initgraph (&gd, &gm, "");
setbkcolor (15);
setcolor (0);
settextjustify (1,1);
settextstyle (3,0,12);
outtextxy (getmaxx()/2, 1, "BATAAN PENINSULA STATE UNIVERSITY");
outtextxy(getmaxx()/2, 3, "MAIN CAMPUS");
settextstyle (3,0,10);
outtextxy (getmaxx()/2, 5, "College of Engineering and Architecture");
outtextxy (getmaxx()/2, 7, "Bachelor of Science in Civil Engineering(BSCE)");
settextstyle (3,0,15);
outtextxy (getmaxx()/2, getmaxy()/2, "COMPUTERIZED TUTORIAL SYSTEM");
outtextxy (getmaxx()/2, 30, "(CORRECTION IN TAPING)");
settextstyle (3,0,10);
outtextxy (getmaxx()/2, getmaxy(), "Programmed by: BSCE-3A Group 8");
getch();
closegraph();
}