examples/grid/test-grid2D.cpp
author Dmitriy Morozov <morozov@cs.duke.edu>
Fri, 14 Sep 2007 17:32:11 -0400
changeset 32 075da5d7d6c3
parent 5 ee9052408c40
permissions -rw-r--r--
Changes to CMakeLists: * Optimize and debug options derive flags from CMKAE_CXX_FLAGS* * Moved CGAL CXX flags from the top level to the specific locations where they are required

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