Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

My simply C++ DOS based program will not run outside Vis...

Ever C++ program I write and even other source code that I download will not run but for a few commands, and then shuts down when I try to run it outside of Visual C++ or when I build it in Visual C++. Now Iv had everybody tell me, of course it does and it's a wind32 application and so on. But Iv only been programming for a few months so what could I do to fix this? Thanks everyone whose helped me out so far. :-)

Comments

  • o0obruceleeo0oo0obruceleeo0o Member Posts: 7
    At the end of your code right before "return 0;" put "system("PAUSE");". Also, make sure you #include . system("PAUSE") is the command to make it say "Press a key to continue" and will pause the program until the user presses a key...
Sign In or Register to comment.