Michael Huntwork wrote:
Hello,
I am new to C++ and am taking my first class and in my programs I
would like to add a non-required feature.
I would like for my app to not close immediately after completion in
Windows when starting it via the ol' double click.
I know that if I start it from a DOS prompt everything will work out
just fine but I and several others would like to "improve" our
projects.
Any suggestions?
OFF-TOPIC
Read in a string at the end of your code. Or (since it seems to be for
Windows only) include <stdlib.h> (not stdlib, which would be C++, MS
compilers had problems with putting everything to std namespace) and call
system("pause"); at the end of your program. (This is a non-portable little
hack!)
Please note, that your question has nothing to do with the C++ language!
Before you post here again, please read this:
http://www.slack.net/~shiva/welcome.txt
--
Attila aka WW