All pastes #738653 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-16 15:11 UTC
rendered paste body
grid = new char*[width];

for(int x = 0; x < width; x++)
grid[x] = new char[height];


GameGrid::~GameGrid()
{
	for(int x = 0; x < width; x++)
		delete[] grid[x];

	delete[] grid;
}