Re: [Dev-C++] Buggy standard library?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2004-04-12 12:46:59
|
Latif Dokter wrote:
> I am using Dev.C++ 4.9.8.7 When creating a program with class World=20
> where World () {} says Hello and ~World() {} says goodbye World=20
> TheWorld; when compiled and executed
> in Ms dos console the program prints hello but doesn't print goodbye I=20
> have read that I may have a buggy version of the standard library if so=
=20
> is there a patch if not what is happening and how can I fix it
How about posting the source of your program?
This works perfectly fine for me:
--
#include <iostream>
using namespace std;
class World
{
public:
World() { cout << "Hello" << endl; }
~World() { cout << "Goodbye" << endl; }
};
World TheWorld;
int main()
{
World TheWorld2;
=09
return 0;
}
--
Greetings,
Bal=E1zs
|