title: How to pass in constructor arguments with new
body: <p>I'm trying to pass in arguments into a constructor but meanwhile making an array of objects like that.  I used the following code to get there:</p>
  
  <p><code>PointPtr centroids = new Point[k](5);</code></p>
  
  <p>Well, that wasn't a syntax error, but it didn't compile.  I didn't really want to hard-code "5" into a default constructor for Point.  Got any ideas on how I should do this?  Thanks!</p>
  
  <p>BTW, I did <code>typedef Point *PointPtr</code> somewhere else already.</p>
  
  <p>Sorry if the title wasn't accurate.  I didn't know how to summarize this.</p>