|
From: Nexus <nne...@ya...> - 2001-08-13 20:00:13
|
add cin.get() just before the return you may have to add 2
or run it from the command line....
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Clayton
Weaver
Sent: Monday, August 13, 2001 7:04 AM
To: dev...@li...
Subject: [Dev-C++] (no subject)
I made a simple program to test the compiling and run options in the Dev-C++
program. The program I wrote was just a simple one that told the computer to
output the string "hello world" to the screen when you ran the program. That
is where the problem is though. I have Windows 98 and I have the DJGPP
compiler with Rhide interface and the MinGW compiler and I just recently
downloaded the Dev-C++ software and I like it, but I'm having trouble with
it. Let me start from the beginning. The simple program I wrote had this as
the source code:
#include <iostream.h>
int main()
{
cout<<"hello world";
return0;
}
I compiled the program without any problems, but when I run it or try to
click on the .exe file in the c:\ drive it pops up the program real quick
and closes it back out instead of keeping it up until I click the exit
button at the top of the window. Why does it do this and how can I make it
stop? My DJGPP with Rhide interface lets the identical program I wrote in it
stay open until I click the x on the screen to close it, but Dev-C++ opens
the program and closes it write back(the program was written in Dev-C++).
Thanks for any and all help that you can offer me:).
--Clayton Weaver
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|