Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Graphics turbo c图形无错误,但不';跑不动_Graphics_Turbo C_Bgi - Fatal编程技术网

Graphics turbo c图形无错误,但不';跑不动

Graphics turbo c图形无错误,但不';跑不动,graphics,turbo-c,bgi,Graphics,Turbo C,Bgi,以下代码没有任何错误,但不会运行。当我运行它时,屏幕上只有一个闪光灯。它不提供任何输出。我该怎么办 #include<graphics.h> #include<conio.h> void main() { int gd = DETECT, gm; initgraph (&gd, &gm, ""); setbkcolor (15); setcolor (0); settextjustify (1,1); se

以下代码没有任何错误,但不会运行。当我运行它时,屏幕上只有一个闪光灯。它不提供任何输出。我该怎么办

#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();
}
#包括
#包括
void main()
{
int gd=检测,gm;
initgraph(&gd,&gm,“”);
单色(15);
setcolor(0);
settextjustify(1,1);
settextstyle(3,0,12);
outtextxy(getmaxx()/2,1,“巴丹半岛州立大学”);
outtextxy(getmaxx()/2,3,“主校园”);
settextstyle(3,0,10);
outtextxy(getmaxx()/2,5,“工程与建筑学院”);
outtextxy(getmaxx()/2,7,“土木工程理学学士(BSCE)”;
settextstyle(3,0,15);
outtextxy(getmaxx()/2,getmaxy()/2,“计算机化教程系统”);
outtextxy(getmaxx()/2,30,“(录制中的更正)”;
settextstyle(3,0,10);
outtextxy(getmaxx()/2,getmaxy(),“编程人:BSCE-3A第8组”);
getch();
closegraph();
}
在initgraph中,您的“”为空。他们应该有通往bgi库的路径。 它应该是这样的:

initgraph(&gd, &gm, "C:\\TC\\BGI");