newb c++ question: when to use "new"?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5082680/when-should-i-use-the-new-operator-in-c">when should I use the new operator in C++</a>  </p>
</blockquote>



<p>say i have a class called Money which has parameters dollars and cents</p>

<p>i could initialize it in the followings 2 ways</p>

<p>1) Money a(3,15);</p>

<p>2) Money *b=new Money(3,15);</p>

<p>my question is when should i use 1) and when should i use 2)</p>
