Thread: Someone having same problem with Code Block?

  1. #1
    Registered User
    Join Date
    May 2007
    Somewhere in Malaysia

    Someone having same problem with Code Block?

    When I compile and run with IDE Code Block, I could run it without exiting automatically. When I run it in bin, release, .exe, I could run the .exe but I really can't see the file. It exit without me having to press Enter. When I compile this code in Dev, I could run the .exe without having any problem. If this problem persist, I'll change to Dev-C++. By the way, I'm using MingGW compiler. Is the problem lies with MingGW compiler? If anyone have the same problem as me, can you post here? Can anyone help us to solve this problem? Thanks in advance!

  2. #2
    Registered User
    Join Date
    Jan 2005
    This sounds like you are having the common problem of the window not staying open when the program ends. Check the FAQ for several solutions. My favorite is adding cin.get() (and possibly cin.ignore()) to the end of your program before it returns.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem compiling simple code examples
    By Wintersun in forum Windows Programming
    Replies: 8
    Last Post: 08-14-2007, 10:30 AM
  2. Problem with game code.
    By ajdspud in forum C++ Programming
    Replies: 5
    Last Post: 02-14-2006, 06:39 PM
  3. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Replies: 4
    Last Post: 01-16-2002, 12:04 AM