#include #include using namespace std; class punct { double ro, fi, teta, x, y, z; public: void Setter(double r, double f, double t); void Transformare(); private: friend double distanta(punct *p1, punct *p2); }; void punct::Setter(double r, double f, double t) { ro=r; fi=f; teta=t; cout<<"Am setat atributele"<x-p2->x),2)+ pow((p1->y-p2->y),2)+ pow((p1->z-p2->z),2) ); return d; } int main() { punct A, B; A.Setter(10.0, 0.5, 0.5); B.Setter(20.0, 1.0, 1.0); A.Transformare(); B.Transformare(); double d; d=distanta(&A,&B); cout<