MS-DOS promt screen closes

G

Guest

I am taking a C programming class which requires me to run programs that I
have written which uses MS-DOS. When I run the program, the prompt screen
will pop up and allow me to enter whatever info that is required but as soon
as I hit enter to try and get an output from the program, the MS-DOS prompt
screen automatically closes before it will show the program solution. I have
tried adding various things into my programs to force the prompt screen to
stay open but they only work a part of the time. HELP!!!!!!

Thanks,
Paul
 
C

C.Joseph Drayton

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul,

If you run the program from a link, it will close on completion. To
get around this, open a [cmd] prompt change to the directory that
has your program and execute it from there.

Ciao . . . C.Joseph

That which a man buys too cheaply . . .
He esteems too lightly
I am taking a C programming class which requires me to run programs that I
have written which uses MS-DOS. When I run the program, the prompt screen
will pop up and allow me to enter whatever info that is required but as soon
as I hit enter to try and get an output from the program, the MS-DOS prompt
screen automatically closes before it will show the program solution. I have
tried adding various things into my programs to force the prompt screen to
stay open but they only work a part of the time. HELP!!!!!!

Thanks,
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBon6e0p5pZd9esrsRAiVpAJ9Km9tI5IFMcAJMnjzgXKaT0JBrTACghXBW
kl58eRA8TS0dWgYDihuq1fo=
=Mvx8
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top