|
From: Per W. <pw...@ia...> - 2003-03-19 14:28:32
|
It's not an oddity of the compiler. It's the expected behaviour when
running a cmd application from a graphical environment on the Win32
environment.
If MinGW should do something about it, they would have to add a debug trap
in the close-down RTL code, to check if the cmd application was started
from the command line or from a windows application and letting debuger
registester a hoook on the shutdown.
/Per W
On Wed, 19 Mar 2003, Daniel Glenfield wrote:
> I prefer to use
>
> #include <iostream>
>
> then in the code
>
> int TempVar;
> std::cin >> TempVar;
>
> before the return statement. This will keep it open.
>
> It's just an oddity of the compiler. I hope they change it.
>
> Other ppl will recommend using System("PAUSE") or something like that.
>
> Daniel
>
>
>
>
>
> >From: "Theodore Kypraios" <t.k...@la...>
> >Reply-To: "Theodore Kypraios" <t.k...@la...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] silly question
> >Date: Wed, 19 Mar 2003 12:46:44 -0000
> >
> >Dear C++ users,
> >
> >I have just downloaded Dev-C++ compiler. I am new in the C language.
> >
> >I have written the simplest program (hello.c). The compile proedure is
> >fine, but when I execute the program I cannot anything in the screen. It
> >seems that it appears an MS-dos windows and it is closed itself
> >immediately.
> >
> >Any ideas? I realise that this a silly question but I have to solve it in
> >order go further.
> >
> >Thanks in advance,
> >Theodore
> >
> >Theodore Kypraios, Postgraduate Student
> >================================================
> >Web: http://www.maths.lancs.ac.uk/~kypraios
> >email: t.k...@la...
> >
> >Department of Mathematics and Statistics
> >Fylde College
> >Lancaster University
> >Lancaster, LA1 4YF
> >UK
> >Tel:+(44)(0)1524 593094
> >Fax:+(44)(0)1524 592681
> >================================================
>
>
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends
> http://messenger.msn.co.uk
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink?
> You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|