|
From: P.D. v. Z. <pa...@my...> - 2003-08-19 14:01:05
|
If you get an error about the system() function used, you probably
didn't include the correct header. Note that in the example it says
"#include <stdlib.h>" ... this is there for a reason.
On a different note, you say you're using Dev-C++ 4.01 .... this version
is ancient, and it's highly recommended to upgrade to the current
version (4.9.8.2), which is much more stable.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Scott
Lawn
Sent: Tuesday, August 19, 2003 2:58 PM
To: dev...@li...
Subject: [Dev-C++] Just starting out
When executing my dos program, it closes automatically. I have tried the
FAQ which tells me;
You can use an input function at the end of you source. The following
code is an example for asking the user to press Enter to continue:
#include <stdlib.h>
int main()
{
system("PAUSE");
return 0;
}
When I insert the [system("PAUSE");] I get the following message on the
compiler)
implicit declaration of function `int system(...)'
The program is running but only remains on screen for a second or two,
I'm using Dev C++ 4.01 on Winows ME.
Regards
Scott
|