turbo c graphics no error but doesn't run -


the following code doesn't have error won't run. there's flash on screen when run it. doesn't provide output. have do?

#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 , 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(); } 

in initgrapgh, "" empty. should have path bgi library. should this:

initgraph(&gd, &gm, "c:\\tc\\bgi"); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -