// matrix1.h - a simple 3 x 3 matrix class.
// Each element is of type int.

// Written by Wayne Pollock, Tampa FL, 2000.

#ifndef MATRIX_H
#define MATRIX_H

class matrix
{
   enum { dim = 3 };
                        // The dimensions of a matrix
 public:
   matrix ();                                // Default Constructor
   matrix ( int m[dim][dim] );               // Conversion Constructor
   matrix ( const matrix& mat );             // Copy Constructor
   matrix& operator= ( const matrix& mat );  // Overloaded Assignment Operator

   void print () const;                      // Prints the matrix to cout
   matrix operator+ ( const matrix& mat ) const;  // Overloaded + Operator
   matrix operator* ( const matrix& mat ) const;  // Overloaded * Operator

 private:
   int rep[dim][dim];                        // The "rep"resentation.
};

#endif
