Add a while loop (there may be easier ways but im a newbie) if you would =
like you may use the while loop in the bottom of my code listed below =
its not perfect but its a start
=20
// While loop =20
do
{
puts("\n\nEnter 99 to quit ");
scanf( "%d", &nbr);
value[ctr] =3D nbr;
ctr++;
}while (ctr < 10 && nbr !=3D 99);
return 0;
=20
----- Original Message -----=20
From: Wien Hong=20
To: dev...@li...=20
Sent: Monday, January 01, 2001 9:03 PM
Subject: [Dev-C++] the ways to prevent the dos windows been closed
When executing my dos program, it closes automatically. I understand =
that I can change this by putting
system(=A1=A7PAUSE=A1=A8);
at the end of my source. Is there any other way to do this? I just =
don't to type it in my program.
Thanks for your help.
Wien
=20
|