/* main.cc -- Stupid test file for the matrix class * * Author: Albert Wong (awong@cs.washington.edu) * Date: June 21, 2001 */ /* Notice that I am using the (ANSI-compliant) standard header, which * does not include a .h at the end. Don't forget the using-directive * when utilizing standard headers. Also, NEVER place a using-directive * in a .h file -- use std:: instead. */ #include using namespace std; /* I use Matrix like any other class by #including the .h file */ #include "Matrix.h" int main(void) { Matrix m1(3,4); /* I could do stuff here, but I won't */ m1[2][2] = 9838; cout << "m1 at 2,2 is " << m1[2][2] << endl; return 0; }