title: turbo c graphics no error but doesn't run
body: <p>The following code doesn't have any error but it won't run. There's just a flash on the screen when I run it. It doesn't provide any output. what do I have to do?</p>
  
  <pre><code>#include&lt;graphics.h&gt;
  #include&lt;conio.h&gt;
  
  void main()
  {
      int gd = DETECT, gm;
      initgraph (&amp;gd, &amp;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();
  }
  </code></pre>