examples/grid/test-grid2D.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Tue, 09 Sep 2008 18:04:04 -0700
branchdev
changeset 89 089d799d7ea2
parent 5 ee9052408c40
permissions -rw-r--r--
Converted issues to Maildir format, added Boost 1.36 issue

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