Author Topic: The program stop working when initializing Graphic Mode in graphics.h  (Read 1584 times)

Offline namminhlp

  • Single posting newcomer
  • *
  • Posts: 1
I do step by step on this link http://www.codeincodeblock.com/2011/09/how-to-setup-winbgim-library-in.html to add "gracphics.h", "winbgim.h" to CodeBlocks but when i run my program :
Code: PHP
  1. #include <iostream>
  2. #include <graphics.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     initwindow(300,300);
  8.     return 0;
  9. }
  10.  
a window appears saying that the program has stopped working.What should i do ? please !
« Last Edit: April 09, 2016, 05:31:49 am by namminhlp »

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10054
Re: The program stop working when initializing Graphic Mode in graphics.h
« Reply #1 on: April 09, 2016, 08:55:24 am »
Add more code to make the program do more than init the window and then quit.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]