C++ array of classes
<p>I working on a game but I have a problem with the initialization of the level. (feld is just field in german)</p>

<pre><code>class level{
private:
    feld spielfeld[10][10];
public:
/*
other stuff
*/
    void init_feld();
};

void level::init_feld()
{
    for(int i=0;i!=10;i++){
        for(int n=0;n!=10;n++){
            spielfeld[i][n] = new feld(land, i, n);
        }
    }
}
</code></pre>

<p>The Error:</p>

<p>Error: no match for »operator=« in    »((level*)this)->level::spielfeld[i][n]    = (operator new(24u), (, ((feld*))))«    /home/nick/stratego/feld.h:18:11:    </p>

<p>Remark: candidate is: feld&amp;    feld::operator=(const feld&amp;) Process    terminated with status 1 (0 minutes,    0 seconds) 2 errors, 0 warnings</p>
