Something
public text v1 · immutable#include <vector>
int mapwidth = 10;
int mapheight = 10;
class Tile {
};
int main()
{
std::vector< std::vector< Tile> > tiles;
tiles.resize(mapwidth);
for(int x=1; x<=mapwidth; x++) {
tiles[x-1].resize(mapheight);
for(int y=1; y<=mapheight; y++) {
tiles[x-1][y-1] = Tile();
}
}
}