title: How to initialize a heap allocated varible in the constructor
body: <p>This is my "code":</p>
  
  <pre><code>class a{
      int *var=new int;
  public:
      a(int i):*var(5){};
      ~a(){}
  };
  </code></pre>
  
  <p>Now of course this doesn't work. 
  How can I initialize a heap variable from the constructor? (I don't want to allocate the heap variable inside the constructor )</p>