Just write the following instruction at the end of your program (and before
return 0):
system ("PAUSE");
it should run fine.
Or start directly from a DOS box
Greetings
Renato
----- Original Message -----
From: Theodore Kypraios
To: dev...@li...
Sent: Wednesday, March 19, 2003 1:46 PM
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
================================================
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
================================================
|