C++ Compiler

Newbie Member
24Oct2007,09:20   #1
pgairo's Avatar
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
Go4Expert Founder
24Oct2007,09:29   #2
shabbir's Avatar
Before the last statement have a user input using scanf, getch / getche so that it does not disappear before you see the output.
Newbie Member
24Oct2007,09:44   #3
pgairo's Avatar
Please can you write the commands so that i can see what you mean.
Go4Expert Founder
24Oct2007,10:09   #4
shabbir's Avatar
Code:
int main()
{
    cout<<"After the last output"<<endl;
    getch();
}
Newbie Member
24Oct2007,10:29   #5
pgairo's Avatar
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.
Go4Expert Founder
24Oct2007,21:37   #6
shabbir's Avatar
I just realized that it was not in the right forum and I have moved the thread to C-C++ forum