Hello all. I need some help on some code...
function definition
double Magnitude () const;
function implementation
double Vector::Magnitude () const
{return sqrt(X*X + Y*Y + Z*Z);}
Test
cout<<"test 4 \n";
cout<<"VectorA ^ VectorB = " (VectorA^VectorB)<<" = "<<(VectorA^VectorB).Magnitude()<<endl;
I get c2064 on the portion of code highlighted in red. The theme of the lab is operator overloading. Let me know if this sufficient for a diagnosis. Thanks a bunch