How do i make an app final

like most here, im new-ish to programming. Im using Microsoft visual studio c++ express. i can build a program with tutorials, but it closes out on me from the project folder. and what do i do to make it work as its own program?
Either run it by pressing Ctrl+F5 or right before the return statement in main() type

system("pause");

I don't remember which #include file this is in, but if you get an error try including stdio.h or iostream.h, and if neither of those work, google the above or search for it on MSDN to get the proper #include file.
Oh yeah, I should have reminded you...

Don't use the system("pause") statement except for testing purposes. It's a bad idea to use it in a final app, as the thread above explains.
[edit] heh, yer right.

Run the program from the console.
Last edited on
Topic archived. No new replies allowed.