#include #include using namespace std;
class Bod{
private:
double xp, yp;
public:
/*bod(){ this->xp=0; this->yp=0; }*/ Bod(double x=0, double y=0):xp(x),yp(y){ } double x() const { return xp; } double y() const { return yp; } double x(double _xp){ return this->xp=_xp; } double y(double _yp){ return this->yp=_yp; } void print() const { cout