#include "matrix.h"

int main()
{
	Matrix W(3,4);
	const int rows = W.rows(), cols = W.cols();

	cout << "W is a " << rows << "x" << cols << " matrix:\n\n";

	for (int i = 0; i < rows; ++i)
		for (int j = 0; j < cols; ++j)
			W[i][j] = i + j;

	cout << "Matrix W accessed using [][]'s" << endl;

	for (int r = 0; r < rows; ++r)
	{
		for (int c = 0; c < cols; ++c)
			cout << W[r][c] << "\t";
		cout << endl;
	}

	cout << endl << "Matrix W accessed using ()'s" << endl;

	for (int a = 0; a < rows; ++a)
	{
		for (int b = 0; b < cols; ++b)
			cout << W(a,b) << "\t";
		cout << endl;
	}

	cout << endl;

	return 0;
}
