All pastes #435582 Raw Edit

Something

public text v1 · immutable
·published 2007-04-12 00:17 UTC
rendered paste body
#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();
                        }
                }
}