Thread: Re: [Dev-C++] silly question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-03-19 13:15:19
|
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
|
|
From: Ioannis V. <iv...@em...> - 2003-03-21 16:57:54
|
The person was talking about C, not C++. Regards, Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of = Catsquotl Sent: Wednesday, March 19, 2003 8:24 PM To: dev...@li... Subject: RE: [Dev-C++] silly question At 16:31 19-3-2003 +0200, Ioannis Vranos wrote: #include <stdlib.h> /* ... */ #include <cstdlib> as include header will also work. followed by code below. greets cat (sorry Ioannis for sending this to you first. wrong button) =20 int main(void) { /* ... */ =20 system("pause"); =20 return 0; } =20 =20 =20 =20 Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys =20 =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Theodore Kypraios Sent: Wednesday, March 19, 2003 2:47 PM To: dev...@li... Subject: [Dev-C++] silly question 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |
|
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
>
|