C++ Compiler

pgairo's Avatar, Join Date: Oct 2007
Newbie Member
Hi, i have a c++ 5 compiler when compiling my programs the output is display for few seconds and than it is closed. Please is there setting on the compiler that i can change so that the output is displayed longer

Cheers..
Patrick
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Before the last statement have a user input using scanf, getch / getche so that it does not disappear before you see the output.
pgairo's Avatar, Join Date: Oct 2007
Newbie Member
Please can you write the commands so that i can see what you mean.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Code:
int main()
{
    cout<<"After the last output"<<endl;
    getch();
}
pgairo's Avatar, Join Date: Oct 2007
Newbie Member
Thanks so much Shabbir for your help here and may our good Lord above continue to bless as you continue to share your knowledge with us.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I just realized that it was not in the right forum and I have moved the thread to C-C++ forum