C++ How to initialize an array of objects in the heap
<p>Given a simple class <code>MyClass</code> with a constructor that accepts two <code>int</code>, how can I initialize an array of <code>MyClass</code> in the <em>heap</em>?</p>

<p>I've tried</p>

<pre><code>MyClass *classes[2] = { new MyClass(1, 2),
                        new MyClass(1, 2) };
</code></pre>

<p>But this doesn't seem to work. Thanks</p>
