Take a look at this code, why will it not display "CleanUP" after it exits Main? I have tried writting it many different ways. Simple code, unexpected results?
Initialize
HelloWorld.......No Clean Up?
#include <iostream>
using namespace std;
class display
{
public:
display() { cout << "Initialize\n"; }
~display() { cout << "Clean up\n"; }
};
display d;
int main()
{
cout <<"Hello World!\n";
cin.get();
return 0;
}