Ivan Vecerina wrote in in
comp.lang.c++:
This is the case in several IDEs. If you want to see the output of
your program,
you need to explicitly keep your application open.
Consider adding a statement such as getchar();
or system("pause"); at the end of your program.
#include <iostream>
int main()
{
std::cout << "Press Enter\n";
std::cin.get();
}
Seems to work fine for me
, any old key press won't work though,
you have to hit enter.
Whats really nice is that if I run the above from my editor that
captures the output it doesn't hang (and I don't have to hit enter),
where as the <conio.h>/getch() version does.
Rob.