Wie erstellen Sie 2d-array c++?

Brauche ich zum erstellen von 2d-array in c++.

Ich kann es nicht durch int mas= new int[x][y]; oder auto mas= new int[x][y];
Ich muss ein array erstellen, die dynamisch wie:

int x,y
auto mas= new int[x][y];//error - must be const.

Bitte helfen Sie mir.

InformationsquelleAutor SevenDays | 2011-10-30
Schreibe einen Kommentar