//matrix.h #ifndef _matrix_h_ #define _matrix_h_ typedef double ValType; /* tipo in virgola mobile */ class Matrix { public: Matrix(int nrows, int ncols); ~Matrix(); void SetValue(int i, int j, ValType value); ValType GetValue(int i, int j); void Print(); private: int _nrows, _ncols; ValType *_values; }; #endif