Re: [Dev-C++] Buggy standard library?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-04-13 09:29:11
|
Per Westermark wrote:
> No, the program doesn't end when main() returns. The desctructors for
> global objects will still be called. The problem with this program is t=
hat
> they are called _after_ system("PAUSE").
Indeed :)
After system("PAUSE"), World gets destroyed correctly, however it cannot=20
be "seen", as the dos prompt disappears :)
If it is run from a separate dos prompt, this is what we get:
--
Hello!
Press any key to continue . . .
Goodbye!
--
The expected behaviour.
--
Greetings,
Bal=E1zs
|