|
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
|