#include #include "Point3D-soln.h" // XXX error: no ‘double Point3D::DistanceFromOrigin()’ member function declared // (Simply caused by not declaring this member in the class declaration) double Point3D::DistanceFromOrigin() const { // XXX error: x_/y_/z_ are private within this context return sqrt(pow(get_x(),2) + pow(get_y(),2) + pow(get_z(),2)); }