// PL5/classfull.cpp // A fully functioning class for 3-vectors // Niels Walet, last updated 04/12/2019 #include #include class vector3 { friend vector3 operator+(double scalar, const vector3 &v); friend std::ostream & operator<<(std::ostream &os, const vector3 &v); private: double x,y,z; public: vector3() : x{}, y{}, z{} {} vector3(double xin, double yin, double zin) : x{xin}, y{yin}, z{zin} {} ~vector3(){std::cout<<"Destroying vector"<