very easy
put the next line /lines at the end of your program
system("PAUSE");
// this stops the program & waits until you press "enter" key
or if you program does not have a system("PAUSE") you could add the next
lines
int pause;
cin >> pause;
>From Eric
----- Original Message -----
From: mingyuan.xu
To: <[email protected]>
Sent: Saturday, October 25, 2008 4:04 PM
Subject: [c-prog] Need a help
When I run a exe,it's closed quickly. Which commond can make it not be
closed
------------------------------------
To unsubscribe, send a blank message to
<mailto:[EMAIL PROTECTED]>.Yahoo! Groups Links
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.549 / Virus Database: 270.8.2/1743 - Release Date: 24-Oct-08
08:33