examples/grid/test-grid2D.cpp
author Dmitriy Morozov <morozov@cs.duke.edu>
Sun, 17 Feb 2008 16:32:33 -0500
changeset 46 6fbe003aad9d
parent 5 ee9052408c40
permissions -rw-r--r--
avida-landscape computes 0-dimensional persistence of the fitness landscape

#include "grid2D.h"
#include <iostream>

int main()
{
	Grid2D grid(40,60);
	int i = 0;
	for (int x = 0; x < 40; ++x)
		for (int y = 0; y < 60; ++y)
		{
			grid(x,y) = i++;
		}

	std::cout << grid(20,30) << std::endl;
	std::cout << grid << std::endl;
}