#include #include "Matrix3.h" #include "Vector3.h" Vector3::Vector3() { int i; for (i = 0; i < 3; i=i+1) x[i] = i + 10; } Matrix3 Vector3::operator*(Matrix3 & X) { Matrix3 Z; int i, j; for (j = 0; j < 3; j = j + 1) for (i = 0; i < 3; i = i + 1) Z.A[i][j] = x[j] * X.A[i][j]; return Z; } ostream & operator<<(ostream & cout, Vector3 & v) { int i; for (i = 0; i < 3; i=i+1) cout << v.x[i] << "\t"; cout << endl; return(cout); }