title: destructor does not work?
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  class Tester {
  public:
  Tester(int x);
  ~Tester();
  int who;
  } Tester_g_1(1) , Tester_g_2(2);
  
  Tester::Tester(int id) {
  cout &lt;&lt; "Intializing" &lt;&lt; id &lt;&lt; endl ;
  who = id;
  }
  
  Tester::~Tester() {
  cout &lt;&lt; "Destroying" &lt;&lt; who &lt;&lt; endl;
  }
  
  int main() {
  Tester localObj(3);
  cout &lt;&lt; "This is not the first line to be displayed";
      system("pause");
  return 0;
  
  }
  </code></pre>
  
  <p>The output that i get is:</p>
  
  <pre><code>Intializing1
  Intializing2
  Intializing3
  This is not the first line to be displayedPress any key to continue . . .
  </code></pre>
  
  <p><strong>Why does the statement in destructor dodes not work?</strong>
  In use :
  <strong>Compiler</strong> - microsoft visual c++ 2010 Express
  <strong>OS</strong> - Win7</p>