C++ Compiler

pgairo's Avatar
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
0
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.
0
pgairo's Avatar
Newbie Member
Please can you write the commands so that i can see what you mean.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Code:
int main()
{
    cout<<"After the last output"<<endl;
    getch();
}
0
pgairo's Avatar
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.
0
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