why is my program not running? (Borland C++ IDE)

Feb 18, 2013 at 3:32pm
I'm typing everything right, no errors, it even said success when i compiled it but when i run it it closes. HELP PLEASEEEE?!
Feb 18, 2013 at 3:36pm
read the reference
http://www.cplusplus.com/forum/beginner/1988/
Feb 18, 2013 at 5:56pm
Try putting this at the end or your int main:

system("pause");
Feb 18, 2013 at 6:42pm
Try putting this at the end or your int main:

system("pause");


Nope. Use std::cin.get(); instead.
Feb 18, 2013 at 7:17pm
Nope, execute console programs from the console.

Your IDE should provide a wrapper for the execution, so it will survive to your program (you'll get the output in case of exceptions, fatal errors, calls to exit(), etc)
Topic archived. No new replies allowed.