examples/pl-functions/test-grid2D.cpp
author Mikael Vejdemo Johansson <mik@math.stanford.edu>
Tue, 23 Feb 2010 17:39:15 -0800
branchdev
changeset 204 7653574ff064
parent 183 0ca59b0ebc47
permissions -rw-r--r--
Andrew Yarmola's compilation fix for MacOSX.

#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;
}