Someone having same problem with Code Block?

This is a discussion on Someone having same problem with Code Block? within the C++ Programming forums, part of the General Programming Boards category; When I compile and run with IDE Code Block, I could run it without exiting automatically. When I run it ...

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

    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
    Posts
    7,317
    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, 05:39 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. Replies: 4
    Last Post: 01-15-2002, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21