C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2007, 08:28 AM   #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!
ofayto is offline   Reply With Quote
Old 07-12-2007, 08:38 AM   #2
Registered User
 
Join Date: Jan 2005
Posts: 7,137
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.
Daved is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling simple code examples Wintersun Windows Programming 8 08-14-2007 10:30 AM
Problem with game code. ajdspud C++ Programming 5 02-14-2006 06:39 PM
Request for comments Prelude A Brief History of Cprogramming.com 15 01-02-2004 10:33 AM
Can you have nested code block? What does the compiler do? For example ... albertr C Programming 4 01-16-2002 12:04 AM


All times are GMT -6. The time now is 11:16 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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